3D_COLLISION_AS_FACES

3D_COLLISION_AS_FACES N

FOR THE COLLISIONS, THE 3D OBJECT NUMBER N USES ITS FACES

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

ACTION

The command 3D_COLLISION_AS_FACES N uses the faces of the 3D object designated by its number in the collisions.

SYNTAX: 3D_COLLISION_AS_FACES 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 uses its faces 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 use its faces

3d_collision_as_faces

SEE ALSO

3D_COLLISION_AS_SPHERE

3D_COLLISION_AS_CUBE

3D_COLLISION_AS_ELLIPSOID

3D_COLLISION_AS_POINT

O3D_COLLISION()