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_, _friction_, _restitution_, _rollingResistance_, _density_, _filter_, _customColor_, _isSensor_, _enableSensorEvents_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_) ⇒ Object



488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
# File 'lib/box2d_types.rb', line 488

def self.create_as(_userData_, _friction_, _restitution_, _rollingResistance_, _density_, _filter_, _customColor_, _isSensor_, _enableSensorEvents_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_)
  instance = ShapeDef.new
  instance[:userData] = _userData_
  instance[:friction] = _friction_
  instance[:restitution] = _restitution_
  instance[:rollingResistance] = _rollingResistance_
  instance[:density] = _density_
  instance[:filter] = _filter_
  instance[:customColor] = _customColor_
  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

#customColorObject



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

def customColor = self[:customColor]

#customColor=(v) ⇒ Object



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

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

#densityObject



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

def density = self[:density]

#density=(v) ⇒ Object



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

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

#enableContactEventsObject



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

def enableContactEvents = self[:enableContactEvents]

#enableContactEvents=(v) ⇒ Object



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

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

#enableHitEventsObject



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

def enableHitEvents = self[:enableHitEvents]

#enableHitEvents=(v) ⇒ Object



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

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

#enablePreSolveEventsObject



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

def enablePreSolveEvents = self[:enablePreSolveEvents]

#enablePreSolveEvents=(v) ⇒ Object



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

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

#enableSensorEventsObject



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

def enableSensorEvents = self[:enableSensorEvents]

#enableSensorEvents=(v) ⇒ Object



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

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

#filterObject



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

def filter = self[:filter]

#filter=(v) ⇒ Object



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

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

#frictionObject



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

def friction = self[:friction]

#friction=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#invokeContactCreationObject



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

def invokeContactCreation = self[:invokeContactCreation]

#invokeContactCreation=(v) ⇒ Object



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

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

#isSensorObject



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

def isSensor = self[:isSensor]

#isSensor=(v) ⇒ Object



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

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

#restitutionObject



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

def restitution = self[:restitution]

#restitution=(v) ⇒ Object



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

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

#rollingResistanceObject



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

def rollingResistance = self[:rollingResistance]

#rollingResistance=(v) ⇒ Object



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

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

#updateBodyMassObject



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

def updateBodyMass = self[:updateBodyMass]

#updateBodyMass=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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