Class LookAt

java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.pose.Pose
com.marginallyclever.ro3.node.nodes.pose.poses.LookAt
All Implemented Interfaces:
PoseChangeListener, EventListener

public class LookAt extends Pose

LookAt is a pose that always faces a target. The target is another Pose. The target is not required to be a child of this pose. The target can be anywhere in the scene graph.

This class provides several functionalities:

  • It can set and get the target Pose.
  • It can update its own location in space based on the target's location.
  • It can serialize and deserialize itself to and from JSON format.