3D_COLLISION_AS_CUBE

3D_COLLISION_AS_CUBE N

FOR THE COLLISIONS, THE 3D OBJECT NUMBER N IS DEFINED BY ITS BOUNDING CUBE

  • Type: Command
  • Parameter: 1
  • Group: 3D Objects

ACTION

The command 3D_COLLISION_AS_CUBE N replaces the 3D object designated by its number by a bounding axis-aligned "cube", in the collisions.

SYNTAX: 3D_COLLISION_AS_CUBE N

  • N = 3D object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of 3D objects.

USE

  • The command is used in order that a 3D object is defined as a cube for the collisions.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is not greater than 0.
  • If 3D object number N does not exist.

EXAMPLE

rem create a 3D world

scene3d 1

rem create a mesh

3d_mesh 1

rem load a file

3d_load_object 1,"mesh.3ds"

rem regard it as a cube

3d_collision_as_cube

SEE ALSO

3D_COLLISION_AS_SPHERE

3D_COLLISION_AS_ELLIPSOID

3D_COLLISION_AS_POINT

3D_COLLISION_AS_FACES

O3D_COLLISION()