Class: Box2D::ShapeDef

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(_userData_, _material_, _density_, _filter_, _enableCustomFiltering_, _isSensor_, _enableSensorEvents_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_) ⇒ Object



531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
# File 'lib/box2d_types.rb', line 531

def self.create_as(_userData_, _material_, _density_, _filter_, _enableCustomFiltering_, _isSensor_, _enableSensorEvents_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_)
  instance = ShapeDef.new
  instance[:userData] = _userData_
  instance[:material] = _material_
  instance[:density] = _density_
  instance[:filter] = _filter_
  instance[:enableCustomFiltering] = _enableCustomFiltering_
  instance[:isSensor] = _isSensor_
  instance[:enableSensorEvents] = _enableSensorEvents_
  instance[:enableContactEvents] = _enableContactEvents_
  instance[:enableHitEvents] = _enableHitEvents_
  instance[:enablePreSolveEvents] = _enablePreSolveEvents_
  instance[:invokeContactCreation] = _invokeContactCreation_
  instance[:updateBodyMass] = _updateBodyMass_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#densityObject



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

def density = self[:density]

#density=(v) ⇒ Object



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

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

#enableContactEventsObject



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

def enableContactEvents = self[:enableContactEvents]

#enableContactEvents=(v) ⇒ Object



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

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

#enableCustomFilteringObject



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

def enableCustomFiltering = self[:enableCustomFiltering]

#enableCustomFiltering=(v) ⇒ Object



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

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

#enableHitEventsObject



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

def enableHitEvents = self[:enableHitEvents]

#enableHitEvents=(v) ⇒ Object



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

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

#enablePreSolveEventsObject



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

def enablePreSolveEvents = self[:enablePreSolveEvents]

#enablePreSolveEvents=(v) ⇒ Object



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

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

#enableSensorEventsObject



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

def enableSensorEvents = self[:enableSensorEvents]

#enableSensorEvents=(v) ⇒ Object



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

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

#filterObject



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

def filter = self[:filter]

#filter=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#invokeContactCreationObject



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

def invokeContactCreation = self[:invokeContactCreation]

#invokeContactCreation=(v) ⇒ Object



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

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

#isSensorObject



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

def isSensor = self[:isSensor]

#isSensor=(v) ⇒ Object



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

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

#materialObject



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

def material = self[:material]

#material=(v) ⇒ Object



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

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

#updateBodyMassObject



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

def updateBodyMass = self[:updateBodyMass]

#updateBodyMass=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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