b3dCopyEntity

Creates a shallow copy of an entity sharing mesh data but with independent transform. Takes entity (source entity handle). Returns new entity handle or 0 on failure.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Int

Quick Summary

Creates a shallow copy of an entity sharing mesh data but with independent transform. Takes entity (source entity handle). Returns new entity handle or 0 on failure.

Technical Exegesis...

Creates a shallow copy of an entity sharing mesh data but with independent transform. Takes entity (source entity handle). Returns new entity handle or 0 on failure. Validates source exists. Allocates new handle (g_nextEntityHandle++). Creates new Entity3D structure. Copies entity type. Copies transform (position, rotation, scale) as independent values. Sets worldMatrixDirty=true. Copies visibility flag. Copies collision settings (type, mode, radius, box min/max) as independent.

Example

Example.bam
; No example implemented yet