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



667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
# File 'lib/box2d_types.rb', line 667

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



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

def applyRestitution = self[:applyRestitution]

#applyRestitution=(v) ⇒ Object



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

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

#bulletsObject



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

def bullets = self[:bullets]

#bullets=(v) ⇒ Object



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

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

#collideObject



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

def collide = self[:collide]

#collide=(v) ⇒ Object



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

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

#hitEventsObject



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

def hitEvents = self[:hitEvents]

#hitEvents=(v) ⇒ Object



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

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

#integratePositionsObject



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

def integratePositions = self[:integratePositions]

#integratePositions=(v) ⇒ Object



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

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

#integrateVelocitiesObject



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

def integrateVelocities = self[:integrateVelocities]

#integrateVelocities=(v) ⇒ Object



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

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

#jointEventsObject



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

def jointEvents = self[:jointEvents]

#jointEvents=(v) ⇒ Object



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

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

#pairsObject



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

def pairs = self[:pairs]

#pairs=(v) ⇒ Object



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

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

#prepareConstraintsObject



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

def prepareConstraints = self[:prepareConstraints]

#prepareConstraints=(v) ⇒ Object



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

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

#prepareStagesObject



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

def prepareStages = self[:prepareStages]

#prepareStages=(v) ⇒ Object



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

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

#refitObject



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

def refit = self[:refit]

#refit=(v) ⇒ Object



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

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

#relaxImpulsesObject



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

def relaxImpulses = self[:relaxImpulses]

#relaxImpulses=(v) ⇒ Object



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

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

#sensorHitsObject



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

def sensorHits = self[:sensorHits]

#sensorHits=(v) ⇒ Object



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

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

#sensorsObject



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

def sensors = self[:sensors]

#sensors=(v) ⇒ Object



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

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

#sleepIslandsObject



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

def sleepIslands = self[:sleepIslands]

#sleepIslands=(v) ⇒ Object



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

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

#solveObject



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

def solve = self[:solve]

#solve=(v) ⇒ Object



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

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

#solveConstraintsObject



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

def solveConstraints = self[:solveConstraints]

#solveConstraints=(v) ⇒ Object



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

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

#solveImpulsesObject



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

def solveImpulses = self[:solveImpulses]

#solveImpulses=(v) ⇒ Object



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

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

#splitIslandsObject



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

def splitIslands = self[:splitIslands]

#splitIslands=(v) ⇒ Object



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

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

#stepObject



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

def step = self[:step]

#step=(v) ⇒ Object



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

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

#storeImpulsesObject



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

def storeImpulses = self[:storeImpulses]

#storeImpulses=(v) ⇒ Object



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

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

#transformsObject



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

def transforms = self[:transforms]

#transforms=(v) ⇒ Object



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

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

#warmStartObject



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

def warmStart = self[:warmStart]

#warmStart=(v) ⇒ Object



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

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