formZ SDK | 5.0 API Reference | Project | Modeling | Animation

fz_anim_enty_world_2_parent

Description

Converts a point with coordinates defined by coordinates in world space to coordinates in an animated entity's coordinate . Note that parent entity nodes define the coordinate for their children entity nodes. So, pass in the parent node for anim_node.

Points retrieved from entities through API functions are usually defined in world space. To figure out what that coordinate translates into in the entity's parent space coordinates, use this function.

Plugin Prototype

fzrt_error_td fz_anim_enty_world_2_parent(

fzrt_int

windex,

fz_anim_node_ptr

anim_node,

fz_xyz_td *

world_xyz,

fz_xyz_td *

parent_xyz )

Parameters

windex [Input]

project window index

anim_node [Input]

animated entity defining a coordinate

world_xyz [Input]

input point in world space coordinates

parent_xyz [Result]

output point in parent space coordinates

Returns

Error codes

Availability

6.1.0.0

Example Files

util_anim_change_grup.fsl

See Also

fz_anim_enty_parent_2_world,

Function Set

fz_anim_fset


Defined in

fz_anim_api.h