3D_COLLISION_AS_POINT

3D_COLLISION_AS_POINT N

FOR THE COLLISIONS, THE 3D OBJECT NUMBER N IS A POINT

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

ACTION

The command 3D_COLLISION_AS_POINT N replaces by a point the 3D object designated by its number, in the collisions.

The 3D object may only collide with volumes.

SYNTAX: 3D_COLLISION_AS_POINT 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 point 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 point

3d_collision_as_point

SEE ALSO

3D_COLLISION_AS_SPHERE

3D_COLLISION_AS_CUBE

3D_COLLISION_AS_ELLIPSOID

3D_COLLISION_AS_FACES

O3D_COLLISION()