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_, _mergeIslands_, _prepareStages_, _solveConstraints_, _prepareConstraints_, _integrateVelocities_, _warmStart_, _solveImpulses_, _integratePositions_, _relaxImpulses_, _applyRestitution_, _storeImpulses_, _splitIslands_, _transforms_, _hitEvents_, _refit_, _bullets_, _sleepIslands_, _sensors_) ⇒ Object



656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
# File 'lib/box2d_types.rb', line 656

def self.create_as(_step_, _pairs_, _collide_, _solve_, _mergeIslands_, _prepareStages_, _solveConstraints_, _prepareConstraints_, _integrateVelocities_, _warmStart_, _solveImpulses_, _integratePositions_, _relaxImpulses_, _applyRestitution_, _storeImpulses_, _splitIslands_, _transforms_, _hitEvents_, _refit_, _bullets_, _sleepIslands_, _sensors_)
  instance = Profile.new
  instance[:step] = _step_
  instance[:pairs] = _pairs_
  instance[:collide] = _collide_
  instance[:solve] = _solve_
  instance[:mergeIslands] = _mergeIslands_
  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[:hitEvents] = _hitEvents_
  instance[:refit] = _refit_
  instance[:bullets] = _bullets_
  instance[:sleepIslands] = _sleepIslands_
  instance[:sensors] = _sensors_
  instance
end

Instance Method Details

#applyRestitutionObject



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

def applyRestitution = self[:applyRestitution]

#applyRestitution=(v) ⇒ Object



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

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

#bulletsObject



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

def bullets = self[:bullets]

#bullets=(v) ⇒ Object



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

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

#collideObject



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

def collide = self[:collide]

#collide=(v) ⇒ Object



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

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

#hitEventsObject



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

def hitEvents = self[:hitEvents]

#hitEvents=(v) ⇒ Object



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

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

#integratePositionsObject



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

def integratePositions = self[:integratePositions]

#integratePositions=(v) ⇒ Object



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

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

#integrateVelocitiesObject



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

def integrateVelocities = self[:integrateVelocities]

#integrateVelocities=(v) ⇒ Object



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

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

#mergeIslandsObject



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

def mergeIslands = self[:mergeIslands]

#mergeIslands=(v) ⇒ Object



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

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

#pairsObject



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

def pairs = self[:pairs]

#pairs=(v) ⇒ Object



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

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

#prepareConstraintsObject



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

def prepareConstraints = self[:prepareConstraints]

#prepareConstraints=(v) ⇒ Object



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

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

#prepareStagesObject



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

def prepareStages = self[:prepareStages]

#prepareStages=(v) ⇒ Object



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

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

#refitObject



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

def refit = self[:refit]

#refit=(v) ⇒ Object



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

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

#relaxImpulsesObject



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

def relaxImpulses = self[:relaxImpulses]

#relaxImpulses=(v) ⇒ Object



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

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

#sensorsObject



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

def sensors = self[:sensors]

#sensors=(v) ⇒ Object



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

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

#sleepIslandsObject



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

def sleepIslands = self[:sleepIslands]

#sleepIslands=(v) ⇒ Object



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

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

#solveObject



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

def solve = self[:solve]

#solve=(v) ⇒ Object



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

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

#solveConstraintsObject



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

def solveConstraints = self[:solveConstraints]

#solveConstraints=(v) ⇒ Object



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

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

#solveImpulsesObject



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

def solveImpulses = self[:solveImpulses]

#solveImpulses=(v) ⇒ Object



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

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

#splitIslandsObject



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

def splitIslands = self[:splitIslands]

#splitIslands=(v) ⇒ Object



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

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

#stepObject



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

def step = self[:step]

#step=(v) ⇒ Object



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

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

#storeImpulsesObject



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

def storeImpulses = self[:storeImpulses]

#storeImpulses=(v) ⇒ Object



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

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

#transformsObject



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

def transforms = self[:transforms]

#transforms=(v) ⇒ Object



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

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

#warmStartObject



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

def warmStart = self[:warmStart]

#warmStart=(v) ⇒ Object



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

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