Class: Box2D::ShapeDef
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::ShapeDef
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #customColor ⇒ Object
- #customColor=(v) ⇒ Object
- #density ⇒ Object
- #density=(v) ⇒ Object
- #enableContactEvents ⇒ Object
- #enableContactEvents=(v) ⇒ Object
- #enableHitEvents ⇒ Object
- #enableHitEvents=(v) ⇒ Object
- #enablePreSolveEvents ⇒ Object
- #enablePreSolveEvents=(v) ⇒ Object
- #enableSensorEvents ⇒ Object
- #enableSensorEvents=(v) ⇒ Object
- #filter ⇒ Object
- #filter=(v) ⇒ Object
- #friction ⇒ Object
- #friction=(v) ⇒ Object
- #internalValue ⇒ Object
- #internalValue=(v) ⇒ Object
- #invokeContactCreation ⇒ Object
- #invokeContactCreation=(v) ⇒ Object
- #isSensor ⇒ Object
- #isSensor=(v) ⇒ Object
- #restitution ⇒ Object
- #restitution=(v) ⇒ Object
- #rollingResistance ⇒ Object
- #rollingResistance=(v) ⇒ Object
- #updateBodyMass ⇒ Object
- #updateBodyMass=(v) ⇒ Object
- #userData ⇒ Object
- #userData=(v) ⇒ Object
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
#customColor ⇒ Object
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 |
#density ⇒ Object
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 |
#enableContactEvents ⇒ Object
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 |
#enableHitEvents ⇒ Object
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 |
#enablePreSolveEvents ⇒ Object
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 |
#enableSensorEvents ⇒ Object
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 |
#filter ⇒ Object
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 |
#friction ⇒ Object
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 |
#internalValue ⇒ Object
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 |
#invokeContactCreation ⇒ Object
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 |
#isSensor ⇒ Object
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 |
#restitution ⇒ Object
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 |
#rollingResistance ⇒ Object
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 |
#updateBodyMass ⇒ Object
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 |
#userData ⇒ Object
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 |