GetPartPos

From SIMboxWiki
Jump to navigation Jump to search

Description

GetPartPos returns a subpart position. The returned position is relative to the original position of the subpart.

Syntax

ZS_DECL ZsRET ZSAPI GetPartPos(

LPARAM hPart,
ZsVec3 vPos,
ZsVec3 vAng
);

Parameters

LPARAM hPart

[in] The id of a subpart.

zsVec3 vPos

[out] The position of the subpart [in meters].

zsVec3 vAng

[out] vAng The orientation of the subpart [in degrees].

Return Value

On success, zsOK (zero) is returned, otherwise an error code is.