Class: BulldogPhysics::CollisionPlane
- Inherits:
-
Object
- Object
- BulldogPhysics::CollisionPlane
- Defined in:
- lib/RigidBodies/collision_shapes.rb
Instance Attribute Summary collapse
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(direction = Vector3.new, offset = 0.0) ⇒ CollisionPlane
constructor
A new instance of CollisionPlane.
Constructor Details
#initialize(direction = Vector3.new, offset = 0.0) ⇒ CollisionPlane
Returns a new instance of CollisionPlane.
45 46 47 48 |
# File 'lib/RigidBodies/collision_shapes.rb', line 45 def initialize(direction = Vector3.new, offset = 0.0) @direction = direction @offset = offset end |
Instance Attribute Details
#direction ⇒ Object
Returns the value of attribute direction.
43 44 45 |
# File 'lib/RigidBodies/collision_shapes.rb', line 43 def direction @direction end |
#offset ⇒ Object
Returns the value of attribute offset.
43 44 45 |
# File 'lib/RigidBodies/collision_shapes.rb', line 43 def offset @offset end |