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_, _jointEvents_, _hitEvents_, _refit_, _bullets_, _sleepIslands_, _sensors_) ⇒ Object



640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
# File 'lib/box2d_types.rb', line 640

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

Instance Method Details

#applyRestitutionObject



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

def applyRestitution = self[:applyRestitution]

#applyRestitution=(v) ⇒ Object



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

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

#bulletsObject



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

def bullets = self[:bullets]

#bullets=(v) ⇒ Object



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

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

#collideObject



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

def collide = self[:collide]

#collide=(v) ⇒ Object



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

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

#hitEventsObject



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

def hitEvents = self[:hitEvents]

#hitEvents=(v) ⇒ Object



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

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

#integratePositionsObject



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

def integratePositions = self[:integratePositions]

#integratePositions=(v) ⇒ Object



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

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

#integrateVelocitiesObject



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

def integrateVelocities = self[:integrateVelocities]

#integrateVelocities=(v) ⇒ Object



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

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

#jointEventsObject



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

def jointEvents = self[:jointEvents]

#jointEvents=(v) ⇒ Object



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

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

#mergeIslandsObject



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

def mergeIslands = self[:mergeIslands]

#mergeIslands=(v) ⇒ Object



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

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

#pairsObject



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

def pairs = self[:pairs]

#pairs=(v) ⇒ Object



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

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

#prepareConstraintsObject



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

def prepareConstraints = self[:prepareConstraints]

#prepareConstraints=(v) ⇒ Object



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

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

#prepareStagesObject



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

def prepareStages = self[:prepareStages]

#prepareStages=(v) ⇒ Object



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

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

#refitObject



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

def refit = self[:refit]

#refit=(v) ⇒ Object



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

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

#relaxImpulsesObject



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

def relaxImpulses = self[:relaxImpulses]

#relaxImpulses=(v) ⇒ Object



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

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

#sensorsObject



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

def sensors = self[:sensors]

#sensors=(v) ⇒ Object



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

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

#sleepIslandsObject



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

def sleepIslands = self[:sleepIslands]

#sleepIslands=(v) ⇒ Object



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

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

#solveObject



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

def solve = self[:solve]

#solve=(v) ⇒ Object



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

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

#solveConstraintsObject



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

def solveConstraints = self[:solveConstraints]

#solveConstraints=(v) ⇒ Object



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

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

#solveImpulsesObject



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

def solveImpulses = self[:solveImpulses]

#solveImpulses=(v) ⇒ Object



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

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

#splitIslandsObject



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

def splitIslands = self[:splitIslands]

#splitIslands=(v) ⇒ Object



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

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

#stepObject



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

def step = self[:step]

#step=(v) ⇒ Object



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

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

#storeImpulsesObject



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

def storeImpulses = self[:storeImpulses]

#storeImpulses=(v) ⇒ Object



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

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

#transformsObject



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

def transforms = self[:transforms]

#transforms=(v) ⇒ Object



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

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

#warmStartObject



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

def warmStart = self[:warmStart]

#warmStart=(v) ⇒ Object



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

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