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
- #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
- #material ⇒ Object
- #material=(v) ⇒ Object
- #restitution ⇒ Object
- #restitution=(v) ⇒ Object
- #rollingResistance ⇒ Object
- #rollingResistance=(v) ⇒ Object
- #tangentSpeed ⇒ Object
- #tangentSpeed=(v) ⇒ Object
- #updateBodyMass ⇒ Object
- #updateBodyMass=(v) ⇒ Object
- #userData ⇒ Object
- #userData=(v) ⇒ Object
Class Method Details
.create_as(_userData_, _friction_, _restitution_, _rollingResistance_, _tangentSpeed_, _material_, _density_, _filter_, _customColor_, _isSensor_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_) ⇒ Object
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/box2d_types.rb', line 491 def self.create_as(_userData_, _friction_, _restitution_, _rollingResistance_, _tangentSpeed_, _material_, _density_, _filter_, _customColor_, _isSensor_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_) instance = ShapeDef.new instance[:userData] = _userData_ instance[:friction] = _friction_ instance[:restitution] = _restitution_ instance[:rollingResistance] = _rollingResistance_ instance[:tangentSpeed] = _tangentSpeed_ instance[:material] = _material_ instance[:density] = _density_ instance[:filter] = _filter_ instance[:customColor] = _customColor_ instance[:isSensor] = _isSensor_ 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
475 |
# File 'lib/box2d_types.rb', line 475 def customColor = self[:customColor] |
#customColor=(v) ⇒ Object
476 |
# File 'lib/box2d_types.rb', line 476 def customColor=(v) self[:customColor] = v end |
#density ⇒ Object
471 |
# File 'lib/box2d_types.rb', line 471 def density = self[:density] |
#density=(v) ⇒ Object
472 |
# File 'lib/box2d_types.rb', line 472 def density=(v) self[:density] = v end |
#enableContactEvents ⇒ Object
479 |
# File 'lib/box2d_types.rb', line 479 def enableContactEvents = self[:enableContactEvents] |
#enableContactEvents=(v) ⇒ Object
480 |
# File 'lib/box2d_types.rb', line 480 def enableContactEvents=(v) self[:enableContactEvents] = v end |
#enableHitEvents ⇒ Object
481 |
# File 'lib/box2d_types.rb', line 481 def enableHitEvents = self[:enableHitEvents] |
#enableHitEvents=(v) ⇒ Object
482 |
# File 'lib/box2d_types.rb', line 482 def enableHitEvents=(v) self[:enableHitEvents] = v end |
#enablePreSolveEvents ⇒ Object
483 |
# File 'lib/box2d_types.rb', line 483 def enablePreSolveEvents = self[:enablePreSolveEvents] |
#enablePreSolveEvents=(v) ⇒ Object
484 |
# File 'lib/box2d_types.rb', line 484 def enablePreSolveEvents=(v) self[:enablePreSolveEvents] = v end |
#filter ⇒ Object
473 |
# File 'lib/box2d_types.rb', line 473 def filter = self[:filter] |
#filter=(v) ⇒ Object
474 |
# File 'lib/box2d_types.rb', line 474 def filter=(v) self[:filter] = v end |
#friction ⇒ Object
461 |
# File 'lib/box2d_types.rb', line 461 def friction = self[:friction] |
#friction=(v) ⇒ Object
462 |
# File 'lib/box2d_types.rb', line 462 def friction=(v) self[:friction] = v end |
#internalValue ⇒ Object
489 |
# File 'lib/box2d_types.rb', line 489 def internalValue = self[:internalValue] |
#internalValue=(v) ⇒ Object
490 |
# File 'lib/box2d_types.rb', line 490 def internalValue=(v) self[:internalValue] = v end |
#invokeContactCreation ⇒ Object
485 |
# File 'lib/box2d_types.rb', line 485 def invokeContactCreation = self[:invokeContactCreation] |
#invokeContactCreation=(v) ⇒ Object
486 |
# File 'lib/box2d_types.rb', line 486 def invokeContactCreation=(v) self[:invokeContactCreation] = v end |
#isSensor ⇒ Object
477 |
# File 'lib/box2d_types.rb', line 477 def isSensor = self[:isSensor] |
#isSensor=(v) ⇒ Object
478 |
# File 'lib/box2d_types.rb', line 478 def isSensor=(v) self[:isSensor] = v end |
#material ⇒ Object
469 |
# File 'lib/box2d_types.rb', line 469 def material = self[:material] |
#material=(v) ⇒ Object
470 |
# File 'lib/box2d_types.rb', line 470 def material=(v) self[:material] = v end |
#restitution ⇒ Object
463 |
# File 'lib/box2d_types.rb', line 463 def restitution = self[:restitution] |
#restitution=(v) ⇒ Object
464 |
# File 'lib/box2d_types.rb', line 464 def restitution=(v) self[:restitution] = v end |
#rollingResistance ⇒ Object
465 |
# File 'lib/box2d_types.rb', line 465 def rollingResistance = self[:rollingResistance] |
#rollingResistance=(v) ⇒ Object
466 |
# File 'lib/box2d_types.rb', line 466 def rollingResistance=(v) self[:rollingResistance] = v end |
#tangentSpeed ⇒ Object
467 |
# File 'lib/box2d_types.rb', line 467 def tangentSpeed = self[:tangentSpeed] |
#tangentSpeed=(v) ⇒ Object
468 |
# File 'lib/box2d_types.rb', line 468 def tangentSpeed=(v) self[:tangentSpeed] = v end |
#updateBodyMass ⇒ Object
487 |
# File 'lib/box2d_types.rb', line 487 def updateBodyMass = self[:updateBodyMass] |
#updateBodyMass=(v) ⇒ Object
488 |
# File 'lib/box2d_types.rb', line 488 def updateBodyMass=(v) self[:updateBodyMass] = v end |
#userData ⇒ Object
459 |
# File 'lib/box2d_types.rb', line 459 def userData = self[:userData] |
#userData=(v) ⇒ Object
460 |
# File 'lib/box2d_types.rb', line 460 def userData=(v) self[:userData] = v end |