Class: MSPhysics::Contact
- Defined in:
- RubyExtension/MSPhysics/contact.rb
Overview
The Contact class represents an individual collision contact.
Instance Attribute Summary collapse
-
#force ⇒ Geom::Vector3d
readonly
Get contact force in Newtons.
-
#normal ⇒ Geom::Vector3d
readonly
Get contact normal.
-
#point ⇒ Geom::Point3d
readonly
Get contact point.
-
#speed ⇒ Numeric
readonly
Get contact speed in meters per second.
-
#toucher ⇒ Body
readonly
Get contact body.
Instance Method Summary collapse
-
#initialize(toucher, point, normal, force, speed) ⇒ Contact
constructor
A new instance of Contact.
Methods inherited from Entity
Constructor Details
#initialize(toucher, point, normal, force, speed) ⇒ Contact
Returns a new instance of Contact
Instance Attribute Details
#force ⇒ Geom::Vector3d (readonly)
Get contact force in Newtons.
#normal ⇒ Geom::Vector3d (readonly)
Get contact normal.
#point ⇒ Geom::Point3d (readonly)
Get contact point.
#speed ⇒ Numeric (readonly)
Get contact speed in meters per second.
#toucher ⇒ Body (readonly)
Get contact body.