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



645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
# File 'lib/box2d_types.rb', line 645

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



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

def applyRestitution = self[:applyRestitution]

#applyRestitution=(v) ⇒ Object



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

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

#bulletsObject



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

def bullets = self[:bullets]

#bullets=(v) ⇒ Object



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

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

#collideObject



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

def collide = self[:collide]

#collide=(v) ⇒ Object



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

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

#hitEventsObject



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

def hitEvents = self[:hitEvents]

#hitEvents=(v) ⇒ Object



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

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

#integratePositionsObject



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

def integratePositions = self[:integratePositions]

#integratePositions=(v) ⇒ Object



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

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

#integrateVelocitiesObject



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

def integrateVelocities = self[:integrateVelocities]

#integrateVelocities=(v) ⇒ Object



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

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

#mergeIslandsObject



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

def mergeIslands = self[:mergeIslands]

#mergeIslands=(v) ⇒ Object



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

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

#pairsObject



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

def pairs = self[:pairs]

#pairs=(v) ⇒ Object



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

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

#prepareConstraintsObject



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

def prepareConstraints = self[:prepareConstraints]

#prepareConstraints=(v) ⇒ Object



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

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

#prepareStagesObject



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

def prepareStages = self[:prepareStages]

#prepareStages=(v) ⇒ Object



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

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

#refitObject



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

def refit = self[:refit]

#refit=(v) ⇒ Object



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

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

#relaxImpulsesObject



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

def relaxImpulses = self[:relaxImpulses]

#relaxImpulses=(v) ⇒ Object



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

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

#sensorsObject



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

def sensors = self[:sensors]

#sensors=(v) ⇒ Object



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

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

#sleepIslandsObject



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

def sleepIslands = self[:sleepIslands]

#sleepIslands=(v) ⇒ Object



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

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

#solveObject



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

def solve = self[:solve]

#solve=(v) ⇒ Object



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

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

#solveConstraintsObject



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

def solveConstraints = self[:solveConstraints]

#solveConstraints=(v) ⇒ Object



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

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

#solveImpulsesObject



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

def solveImpulses = self[:solveImpulses]

#solveImpulses=(v) ⇒ Object



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

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

#splitIslandsObject



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

def splitIslands = self[:splitIslands]

#splitIslands=(v) ⇒ Object



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

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

#stepObject



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

def step = self[:step]

#step=(v) ⇒ Object



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

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

#storeImpulsesObject



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

def storeImpulses = self[:storeImpulses]

#storeImpulses=(v) ⇒ Object



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

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

#transformsObject



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

def transforms = self[:transforms]

#transforms=(v) ⇒ Object



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

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

#warmStartObject



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

def warmStart = self[:warmStart]

#warmStart=(v) ⇒ Object



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

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