Objects

From SIMboxWiki
Jump to navigation Jump to search

Objects

Class Description
GetObjectName Use the function GetObjectName to get the name of a specified object.
GetObjectPos Use the function GetObjectPos to access a specific object position and orientation (6DOF), in world coordinates.
GetPartHandle Use the function GetPartHandle to access the handle of a subpart in a specified object.
GetPartPos Use the function GetPartPos to retrieve the position of a part of an object, in object coordinate space.
GetWorldPos Use the function GetWorldPos to retrieve the position of a specified part/object in world coordinates, considering all hierarchies.
HidePartByID Use the function HidePartByID to hide or show a specified part in an object. It is like HidePart, but contains a user part ID for fast accessing.
HidePart Use the function HidePart to hide or show a specified part in an object.
HideObject Use the function HideObject to hide or show a specified object in a scene.
LoadMultiPart Use the function LoadMultiPart to load an object with three representations. These are used for static LOD where each one is used for a different level: high, medium and low. The engine automatically switches between levels, according to the distance from the viewer.
LoadObject Use the function LoadObject to load a 3D object model and places it in the scene.
MovePart Use the function MovePart to move or rotate an object subpart.
MovePartByID Use the function MovePartByID to move or rotate a subpart of an object. The part is specified by its name and the parent object ID.
PickObject Use the function PickObject to return the ID of the picked object.
PlaceObjects Use the function PlaceObjects for rapid positioning of an object list.
RemoveObject The RemoveObject function removes an existing object from the scene.
SetObjectPos Use the function SetObjectPos to set a specified object position and orientation (6DOF) in world coordinates.