Skip to main content

CreateObjectProps

type CreateObjectProps<T extends ObjectType> = {
id?: string;

type?: ObjectType;

parentId?: string;

position?: Vector3 | Vector3Array;

rotation?: Quaternion | Euler | QuaternionArray | Vector3Array;

scale?: Vector3 | Vector3Array | number;

drawDistance?: EntityDrawDistanceType | null;

dimension?: number;

collision?: EntityCollisionType | null;

collider?: EntityCollisionType | null;

sensor?: boolean;

mass?: number;

friction?: number;

restitution?: number;

enabledRotations?: Boolean3Array;

enabledTranslations?: Boolean3Array;

shadows?: boolean;

renderOrder?: number;
};