ARLookAtEntity

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

This is an Avatar Reality Utilities function.


Contents

Function

ARLookAtEntity(entity, target)
aim entity at target entity

Notes

This function was written to support custom cameras, but it can be useful for any entity that needs to point toward another entity.

Examples

See MiniLookAtCamera

Code

This is a simple wrapper around ARLookAtPos, passing the target entity's location as the target position. See also GetWorldPos.

function ARLookAtEntity(entity,target)
	ARLookAtPos(entity,target:GetWorldPos());
end
Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools