objlookat expression function

Computes the rotation vector of a lookat from one object to another.

All Usage Examples

Usage

objlookat(base_node, target_node, upv)

Examples

objlookat("/obj/null1","/obj/null2",vector3(0,1,0))[0]

Returns the rotation parameter for Rx to get null1 to look at null2