User Guide

pointOfContact 929
pointAtOrientation
Usage
member(whichCastmember).model(whichModel).pointAtOrientation
member(whichCastmember).group(whichGroup).pointAtOrientation
member(whichCastmember).light(whichLight).pointAtOrientation
member(whichCastmember).camera(whichCamera).pointAtOrientation
Description
3D model, light, group and camera property; allows you to get or set how the referenced object
responds to the
pointAt command. This property is a linear list of two object-relative vectors, the
first vector in the list defines which direction is considered the objects front direction, the second
defines which direction is considered the objects up direction.
The objects front and up directions do not need to be perpendicular to each other, but they
should not be parallel to each other.
Example
This statement displays the object-relative front direction and up direction vectors of the model
named bip01:
put member("scene").model("bip01").pointAtOrientation
-- [vector(0.0000, 0.0000, 1.0000), vector(0.0000, 1.0000, 0.0000)]
See also
pointAt
pointOfContact
Usage
collisionData.pointOfContact
Description
3D collisionData property; returns a vector describing the point of contact in a collision
between two models.
The
collisionData object is sent as an argument with the #collideWith and #collideAny
events to the handler specified in the registerForEvent, registerScript, and
setCollisionCallback
commands.
The #collideWith and #collideAny events are sent when a collision occurs between models to
which collision modifiers have been added. The
resolve property of the models’ modifiers must
be set to TRUE.
This property can be tested but not set.