Game Development Reference
In-Depth Information
How it works...
The
Arrow
object has two major components. One is
Geometry
, which is a simple
elongated box. The other is
CollisionShape
for the head of the arrow, which is the
only thing that will look for collisions. The geometry is conveniently moved so that its tip
will be at the (0,0,0) position of the
Arrow
node. It is convenient since it means we don't
have to do any conversions in
ArrowFacingControl
but can use
rotateUpTo
with
the actual velocity (direction) of the arrow.