Create Skeleton Part Look-at Controller

Avatar
Client Side
Only PC

After creating a skeleton part look-at controller entity, you can use this entity to control the specified skeleton part and make it always face a specific target.

Declaration

func CreateSkeletonPartLookAtController(out var createdEntity entity<SkeletonPartLookAtController>, controlledTarget entity<SkeletonPart>, lookAtTarget entity<Transform>)
go

Parameters

Input

Name Type Description
Controlled Target SkeletonPart The skeleton part that is being controlled
Look-at Target Transform The target that is being looked at

Out

Name Type Description
Created Entity SkeletonPartLookAtController The skeleton part look-at controller entity. If the entity is destroyed, the look-at functionality will cease.