Class: Box2D::BodyDef
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::BodyDef
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #allowFastRotation ⇒ Object
- #allowFastRotation=(v) ⇒ Object
- #angularDamping ⇒ Object
- #angularDamping=(v) ⇒ Object
- #angularVelocity ⇒ Object
- #angularVelocity=(v) ⇒ Object
- #enableSleep ⇒ Object
- #enableSleep=(v) ⇒ Object
- #gravityScale ⇒ Object
- #gravityScale=(v) ⇒ Object
- #internalValue ⇒ Object
- #internalValue=(v) ⇒ Object
- #isAwake ⇒ Object
- #isAwake=(v) ⇒ Object
- #isBullet ⇒ Object
- #isBullet=(v) ⇒ Object
- #isEnabled ⇒ Object
- #isEnabled=(v) ⇒ Object
- #linearDamping ⇒ Object
- #linearDamping=(v) ⇒ Object
- #linearVelocity ⇒ Object
- #linearVelocity=(v) ⇒ Object
- #motionLocks ⇒ Object
- #motionLocks=(v) ⇒ Object
- #name ⇒ Object
- #name=(v) ⇒ Object
- #position ⇒ Object
- #position=(v) ⇒ Object
- #rotation ⇒ Object
- #rotation=(v) ⇒ Object
- #sleepThreshold ⇒ Object
- #sleepThreshold=(v) ⇒ Object
- #type ⇒ Object
- #type=(v) ⇒ Object
- #userData ⇒ Object
- #userData=(v) ⇒ Object
Class Method Details
.create_as(_type_, _position_, _rotation_, _linearVelocity_, _angularVelocity_, _linearDamping_, _angularDamping_, _gravityScale_, _sleepThreshold_, _name_, _userData_, _motionLocks_, _enableSleep_, _isAwake_, _isBullet_, _isEnabled_, _allowFastRotation_, _internalValue_) ⇒ Object
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/box2d_types.rb', line 394 def self.create_as(_type_, _position_, _rotation_, _linearVelocity_, _angularVelocity_, _linearDamping_, _angularDamping_, _gravityScale_, _sleepThreshold_, _name_, _userData_, _motionLocks_, _enableSleep_, _isAwake_, _isBullet_, _isEnabled_, _allowFastRotation_, _internalValue_) instance = BodyDef.new instance[:type] = _type_ instance[:position] = _position_ instance[:rotation] = _rotation_ instance[:linearVelocity] = _linearVelocity_ instance[:angularVelocity] = _angularVelocity_ instance[:linearDamping] = _linearDamping_ instance[:angularDamping] = _angularDamping_ instance[:gravityScale] = _gravityScale_ instance[:sleepThreshold] = _sleepThreshold_ instance[:name] = _name_ instance[:userData] = _userData_ instance[:motionLocks] = _motionLocks_ instance[:enableSleep] = _enableSleep_ instance[:isAwake] = _isAwake_ instance[:isBullet] = _isBullet_ instance[:isEnabled] = _isEnabled_ instance[:allowFastRotation] = _allowFastRotation_ instance[:internalValue] = _internalValue_ instance end |
Instance Method Details
#allowFastRotation ⇒ Object
390 |
# File 'lib/box2d_types.rb', line 390 def allowFastRotation = self[:allowFastRotation] |
#allowFastRotation=(v) ⇒ Object
391 |
# File 'lib/box2d_types.rb', line 391 def allowFastRotation=(v) self[:allowFastRotation] = v end |
#angularDamping ⇒ Object
370 |
# File 'lib/box2d_types.rb', line 370 def angularDamping = self[:angularDamping] |
#angularDamping=(v) ⇒ Object
371 |
# File 'lib/box2d_types.rb', line 371 def angularDamping=(v) self[:angularDamping] = v end |
#angularVelocity ⇒ Object
366 |
# File 'lib/box2d_types.rb', line 366 def angularVelocity = self[:angularVelocity] |
#angularVelocity=(v) ⇒ Object
367 |
# File 'lib/box2d_types.rb', line 367 def angularVelocity=(v) self[:angularVelocity] = v end |
#enableSleep ⇒ Object
382 |
# File 'lib/box2d_types.rb', line 382 def enableSleep = self[:enableSleep] |
#enableSleep=(v) ⇒ Object
383 |
# File 'lib/box2d_types.rb', line 383 def enableSleep=(v) self[:enableSleep] = v end |
#gravityScale ⇒ Object
372 |
# File 'lib/box2d_types.rb', line 372 def gravityScale = self[:gravityScale] |
#gravityScale=(v) ⇒ Object
373 |
# File 'lib/box2d_types.rb', line 373 def gravityScale=(v) self[:gravityScale] = v end |
#internalValue ⇒ Object
392 |
# File 'lib/box2d_types.rb', line 392 def internalValue = self[:internalValue] |
#internalValue=(v) ⇒ Object
393 |
# File 'lib/box2d_types.rb', line 393 def internalValue=(v) self[:internalValue] = v end |
#isAwake ⇒ Object
384 |
# File 'lib/box2d_types.rb', line 384 def isAwake = self[:isAwake] |
#isAwake=(v) ⇒ Object
385 |
# File 'lib/box2d_types.rb', line 385 def isAwake=(v) self[:isAwake] = v end |
#isBullet ⇒ Object
386 |
# File 'lib/box2d_types.rb', line 386 def isBullet = self[:isBullet] |
#isBullet=(v) ⇒ Object
387 |
# File 'lib/box2d_types.rb', line 387 def isBullet=(v) self[:isBullet] = v end |
#isEnabled ⇒ Object
388 |
# File 'lib/box2d_types.rb', line 388 def isEnabled = self[:isEnabled] |
#isEnabled=(v) ⇒ Object
389 |
# File 'lib/box2d_types.rb', line 389 def isEnabled=(v) self[:isEnabled] = v end |
#linearDamping ⇒ Object
368 |
# File 'lib/box2d_types.rb', line 368 def linearDamping = self[:linearDamping] |
#linearDamping=(v) ⇒ Object
369 |
# File 'lib/box2d_types.rb', line 369 def linearDamping=(v) self[:linearDamping] = v end |
#linearVelocity ⇒ Object
364 |
# File 'lib/box2d_types.rb', line 364 def linearVelocity = self[:linearVelocity] |
#linearVelocity=(v) ⇒ Object
365 |
# File 'lib/box2d_types.rb', line 365 def linearVelocity=(v) self[:linearVelocity] = v end |
#motionLocks ⇒ Object
380 |
# File 'lib/box2d_types.rb', line 380 def motionLocks = self[:motionLocks] |
#motionLocks=(v) ⇒ Object
381 |
# File 'lib/box2d_types.rb', line 381 def motionLocks=(v) self[:motionLocks] = v end |
#name ⇒ Object
376 |
# File 'lib/box2d_types.rb', line 376 def name = self[:name] |
#name=(v) ⇒ Object
377 |
# File 'lib/box2d_types.rb', line 377 def name=(v) self[:name] = v end |
#position ⇒ Object
360 |
# File 'lib/box2d_types.rb', line 360 def position = self[:position] |
#position=(v) ⇒ Object
361 |
# File 'lib/box2d_types.rb', line 361 def position=(v) self[:position] = v end |
#rotation ⇒ Object
362 |
# File 'lib/box2d_types.rb', line 362 def rotation = self[:rotation] |
#rotation=(v) ⇒ Object
363 |
# File 'lib/box2d_types.rb', line 363 def rotation=(v) self[:rotation] = v end |
#sleepThreshold ⇒ Object
374 |
# File 'lib/box2d_types.rb', line 374 def sleepThreshold = self[:sleepThreshold] |
#sleepThreshold=(v) ⇒ Object
375 |
# File 'lib/box2d_types.rb', line 375 def sleepThreshold=(v) self[:sleepThreshold] = v end |
#type ⇒ Object
358 |
# File 'lib/box2d_types.rb', line 358 def type = self[:type] |
#type=(v) ⇒ Object
359 |
# File 'lib/box2d_types.rb', line 359 def type=(v) self[:type] = v end |
#userData ⇒ Object
378 |
# File 'lib/box2d_types.rb', line 378 def userData = self[:userData] |
#userData=(v) ⇒ Object
379 |
# File 'lib/box2d_types.rb', line 379 def userData=(v) self[:userData] = v end |