Class: MSPhysics::Hit
Overview
Instance Attribute Summary collapse
- #body ⇒ Body readonly
- #normal ⇒ Geom::Vector3d readonly
- #point ⇒ Geom::Point3d readonly
Instance Method Summary collapse
-
#initialize(body, point, normal) ⇒ Hit
constructor
A new instance of Hit.
Methods inherited from Entity
Constructor Details
#initialize(body, point, normal) ⇒ Hit
Returns a new instance of Hit.
9 10 11 12 13 |
# File 'RubyExtension/MSPhysics/hit.rb', line 9 def initialize(body, point, normal) @body = body @point = Geom::Point3d.new(point) @normal = Geom::Vector3d.new(normal) end |
Instance Attribute Details
#normal ⇒ Geom::Vector3d (readonly)
|
# File 'RubyExtension/MSPhysics/hit.rb', line 21
|
#point ⇒ Geom::Point3d (readonly)
|
# File 'RubyExtension/MSPhysics/hit.rb', line 18
|