import_collision_object
Import an OBJ file as a collision object for cloth simulation, replacing the current avatar. Set scale and keep position to control placement.
Instructions
Import your own OBJ (e.g. a modelled curtain rail or furniture) as an object cloth collides with. Units are mm unless scale is set (e.g. 10 for a model in cm). It replaces the current avatar and any rods or boxes (CLO keeps a single avatar).
Args: file_path: Absolute path to the .obj file. keep_position: Keep the file's coordinates (False: CLO drops it onto the ground). scale: Scale factor applied on import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| file_path | Yes | ||
| keep_position | No |