Class: Box2D::Profile

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_step_, _pairs_, _collide_, _solve_, _prepareStages_, _solveConstraints_, _prepareConstraints_, _integrateVelocities_, _warmStart_, _solveImpulses_, _integratePositions_, _relaxImpulses_, _applyRestitution_, _storeImpulses_, _splitIslands_, _transforms_, _sensorHits_, _jointEvents_, _hitEvents_, _refit_, _bullets_, _sleepIslands_, _sensors_) ⇒ Object



673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
# File 'lib/box2d_types.rb', line 673

def self.create_as(_step_, _pairs_, _collide_, _solve_, _prepareStages_, _solveConstraints_, _prepareConstraints_, _integrateVelocities_, _warmStart_, _solveImpulses_, _integratePositions_, _relaxImpulses_, _applyRestitution_, _storeImpulses_, _splitIslands_, _transforms_, _sensorHits_, _jointEvents_, _hitEvents_, _refit_, _bullets_, _sleepIslands_, _sensors_)
  instance = Profile.new
  instance[:step] = _step_
  instance[:pairs] = _pairs_
  instance[:collide] = _collide_
  instance[:solve] = _solve_
  instance[:prepareStages] = _prepareStages_
  instance[:solveConstraints] = _solveConstraints_
  instance[:prepareConstraints] = _prepareConstraints_
  instance[:integrateVelocities] = _integrateVelocities_
  instance[:warmStart] = _warmStart_
  instance[:solveImpulses] = _solveImpulses_
  instance[:integratePositions] = _integratePositions_
  instance[:relaxImpulses] = _relaxImpulses_
  instance[:applyRestitution] = _applyRestitution_
  instance[:storeImpulses] = _storeImpulses_
  instance[:splitIslands] = _splitIslands_
  instance[:transforms] = _transforms_
  instance[:sensorHits] = _sensorHits_
  instance[:jointEvents] = _jointEvents_
  instance[:hitEvents] = _hitEvents_
  instance[:refit] = _refit_
  instance[:bullets] = _bullets_
  instance[:sleepIslands] = _sleepIslands_
  instance[:sensors] = _sensors_
  instance
end

Instance Method Details

#applyRestitutionObject



651
# File 'lib/box2d_types.rb', line 651

def applyRestitution = self[:applyRestitution]

#applyRestitution=(v) ⇒ Object



652
# File 'lib/box2d_types.rb', line 652

def applyRestitution=(v) self[:applyRestitution] = v end

#bulletsObject



667
# File 'lib/box2d_types.rb', line 667

def bullets = self[:bullets]

#bullets=(v) ⇒ Object



668
# File 'lib/box2d_types.rb', line 668

def bullets=(v) self[:bullets] = v end

#collideObject



631
# File 'lib/box2d_types.rb', line 631

def collide = self[:collide]

#collide=(v) ⇒ Object



632
# File 'lib/box2d_types.rb', line 632

def collide=(v) self[:collide] = v end

#hitEventsObject



663
# File 'lib/box2d_types.rb', line 663

def hitEvents = self[:hitEvents]

#hitEvents=(v) ⇒ Object



664
# File 'lib/box2d_types.rb', line 664

def hitEvents=(v) self[:hitEvents] = v end

#integratePositionsObject



647
# File 'lib/box2d_types.rb', line 647

def integratePositions = self[:integratePositions]

#integratePositions=(v) ⇒ Object



648
# File 'lib/box2d_types.rb', line 648

def integratePositions=(v) self[:integratePositions] = v end

#integrateVelocitiesObject



641
# File 'lib/box2d_types.rb', line 641

def integrateVelocities = self[:integrateVelocities]

#integrateVelocities=(v) ⇒ Object



642
# File 'lib/box2d_types.rb', line 642

def integrateVelocities=(v) self[:integrateVelocities] = v end

#jointEventsObject



661
# File 'lib/box2d_types.rb', line 661

def jointEvents = self[:jointEvents]

#jointEvents=(v) ⇒ Object



662
# File 'lib/box2d_types.rb', line 662

def jointEvents=(v) self[:jointEvents] = v end

#pairsObject



629
# File 'lib/box2d_types.rb', line 629

def pairs = self[:pairs]

#pairs=(v) ⇒ Object



630
# File 'lib/box2d_types.rb', line 630

def pairs=(v) self[:pairs] = v end

#prepareConstraintsObject



639
# File 'lib/box2d_types.rb', line 639

def prepareConstraints = self[:prepareConstraints]

#prepareConstraints=(v) ⇒ Object



640
# File 'lib/box2d_types.rb', line 640

def prepareConstraints=(v) self[:prepareConstraints] = v end

#prepareStagesObject



635
# File 'lib/box2d_types.rb', line 635

def prepareStages = self[:prepareStages]

#prepareStages=(v) ⇒ Object



636
# File 'lib/box2d_types.rb', line 636

def prepareStages=(v) self[:prepareStages] = v end

#refitObject



665
# File 'lib/box2d_types.rb', line 665

def refit = self[:refit]

#refit=(v) ⇒ Object



666
# File 'lib/box2d_types.rb', line 666

def refit=(v) self[:refit] = v end

#relaxImpulsesObject



649
# File 'lib/box2d_types.rb', line 649

def relaxImpulses = self[:relaxImpulses]

#relaxImpulses=(v) ⇒ Object



650
# File 'lib/box2d_types.rb', line 650

def relaxImpulses=(v) self[:relaxImpulses] = v end

#sensorHitsObject



659
# File 'lib/box2d_types.rb', line 659

def sensorHits = self[:sensorHits]

#sensorHits=(v) ⇒ Object



660
# File 'lib/box2d_types.rb', line 660

def sensorHits=(v) self[:sensorHits] = v end

#sensorsObject



671
# File 'lib/box2d_types.rb', line 671

def sensors = self[:sensors]

#sensors=(v) ⇒ Object



672
# File 'lib/box2d_types.rb', line 672

def sensors=(v) self[:sensors] = v end

#sleepIslandsObject



669
# File 'lib/box2d_types.rb', line 669

def sleepIslands = self[:sleepIslands]

#sleepIslands=(v) ⇒ Object



670
# File 'lib/box2d_types.rb', line 670

def sleepIslands=(v) self[:sleepIslands] = v end

#solveObject



633
# File 'lib/box2d_types.rb', line 633

def solve = self[:solve]

#solve=(v) ⇒ Object



634
# File 'lib/box2d_types.rb', line 634

def solve=(v) self[:solve] = v end

#solveConstraintsObject



637
# File 'lib/box2d_types.rb', line 637

def solveConstraints = self[:solveConstraints]

#solveConstraints=(v) ⇒ Object



638
# File 'lib/box2d_types.rb', line 638

def solveConstraints=(v) self[:solveConstraints] = v end

#solveImpulsesObject



645
# File 'lib/box2d_types.rb', line 645

def solveImpulses = self[:solveImpulses]

#solveImpulses=(v) ⇒ Object



646
# File 'lib/box2d_types.rb', line 646

def solveImpulses=(v) self[:solveImpulses] = v end

#splitIslandsObject



655
# File 'lib/box2d_types.rb', line 655

def splitIslands = self[:splitIslands]

#splitIslands=(v) ⇒ Object



656
# File 'lib/box2d_types.rb', line 656

def splitIslands=(v) self[:splitIslands] = v end

#stepObject



627
# File 'lib/box2d_types.rb', line 627

def step = self[:step]

#step=(v) ⇒ Object



628
# File 'lib/box2d_types.rb', line 628

def step=(v) self[:step] = v end

#storeImpulsesObject



653
# File 'lib/box2d_types.rb', line 653

def storeImpulses = self[:storeImpulses]

#storeImpulses=(v) ⇒ Object



654
# File 'lib/box2d_types.rb', line 654

def storeImpulses=(v) self[:storeImpulses] = v end

#transformsObject



657
# File 'lib/box2d_types.rb', line 657

def transforms = self[:transforms]

#transforms=(v) ⇒ Object



658
# File 'lib/box2d_types.rb', line 658

def transforms=(v) self[:transforms] = v end

#warmStartObject



643
# File 'lib/box2d_types.rb', line 643

def warmStart = self[:warmStart]

#warmStart=(v) ⇒ Object



644
# File 'lib/box2d_types.rb', line 644

def warmStart=(v) self[:warmStart] = v end