Class: BulldogPhysics::CollisionPlane

Inherits:
Object
  • Object
show all
Defined in:
lib/RigidBodies/collision_shapes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#directionObject

Returns the value of attribute direction.



43
44
45
# File 'lib/RigidBodies/collision_shapes.rb', line 43

def direction
  @direction
end

#offsetObject

Returns the value of attribute offset.



43
44
45
# File 'lib/RigidBodies/collision_shapes.rb', line 43

def offset
  @offset
end