3ds Max C++ API Reference
Loading...
Searching...
No Matches
icollision.h File Reference
#include "maxheap.h"
#include "iparamm2.h"
#include "iFnPub.h"

Classes

class  ICollision
 
class  CollisionOps
 
class  CollisionPlane
 
class  CollisionSphere
 
class  CollisionVNormal
 
class  CollisionMesh
 

Macros

#define PLANAR_COLLISION_ID   Class_ID(0x14585111, 0x444a7dcf)
 
#define SPHERICAL_COLLISION_ID   Class_ID(0x14585222, 0x555a7dcf)
 
#define MESH_COLLISION_ID   Class_ID(0x14585333, 0x666a7dcf)
 
#define COLLISION_FO_INTERFACE   Class_ID(0x14585444, 0x777a7dcf)
 
#define GetCollisionOpsInterface(cd)    (CollisionOps *)(cd)->GetInterface(COLLISION_FO_INTERFACE)
 
#define POINT_COLLISION   1
 
#define SPHERE_COLLISION   2
 
#define BOX_COLLISION   4
 
#define EDGE_COLLISION   8
 

Enumerations

enum  {
  collision_supportedcollisions , collision_preframe , collision_postframe , collision_point_to_surface ,
  collision_sphere_to_surface , collision_box_to_surface , collision_edge_to_surface
}
 
enum  { collisionplane_params }
 
enum  { collisionplane_width , collisionplane_height , collisionplane_quality , collisionplane_node }
 
enum  { collisionsphere_params }
 
enum  Collision_Params { collisionsphere_radius , collisionsphere_node , collisionsphere_scaleFactor }
 
enum  { collisionmesh_params }
 
enum  { collisionmesh_hit_face_index , collisionmesh_hit_bary , collisionmesh_node }
 

Macro Definition Documentation

◆ PLANAR_COLLISION_ID

#define PLANAR_COLLISION_ID   Class_ID(0x14585111, 0x444a7dcf)

◆ SPHERICAL_COLLISION_ID

#define SPHERICAL_COLLISION_ID   Class_ID(0x14585222, 0x555a7dcf)

◆ MESH_COLLISION_ID

#define MESH_COLLISION_ID   Class_ID(0x14585333, 0x666a7dcf)

◆ COLLISION_FO_INTERFACE

#define COLLISION_FO_INTERFACE   Class_ID(0x14585444, 0x777a7dcf)

◆ GetCollisionOpsInterface

#define GetCollisionOpsInterface (   cd)     (CollisionOps *)(cd)->GetInterface(COLLISION_FO_INTERFACE)

◆ POINT_COLLISION

#define POINT_COLLISION   1

◆ SPHERE_COLLISION

#define SPHERE_COLLISION   2

◆ BOX_COLLISION

#define BOX_COLLISION   4

◆ EDGE_COLLISION

#define EDGE_COLLISION   8

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
collision_supportedcollisions 
collision_preframe 
collision_postframe 
collision_point_to_surface 
collision_sphere_to_surface 
collision_box_to_surface 
collision_edge_to_surface 
@ collision_box_to_surface
Definition: icollision.h:219
@ collision_point_to_surface
Definition: icollision.h:219
@ collision_edge_to_surface
Definition: icollision.h:220
@ collision_preframe
Definition: icollision.h:218
@ collision_sphere_to_surface
Definition: icollision.h:219
@ collision_postframe
Definition: icollision.h:218
@ collision_supportedcollisions
Definition: icollision.h:218

◆ anonymous enum

anonymous enum
Enumerator
collisionplane_params 
@ collisionplane_params
Definition: icollision.h:391

◆ anonymous enum

anonymous enum
Enumerator
collisionplane_width 
collisionplane_height 
collisionplane_quality 
collisionplane_node 
398 };
@ collisionplane_node
Definition: icollision.h:397
@ collisionplane_width
Definition: icollision.h:394
@ collisionplane_height
Definition: icollision.h:395
@ collisionplane_quality
Definition: icollision.h:396

◆ anonymous enum

anonymous enum
Enumerator
collisionsphere_params 
@ collisionsphere_params
Definition: icollision.h:777

◆ Collision_Params

Enumerator
collisionsphere_radius 
collisionsphere_node 
collisionsphere_scaleFactor 
781 collisionsphere_node, //using a node right now this really needs to be a TM but it does not look like tms are hooked up yet in pb2
783 };
@ collisionsphere_radius
Definition: icollision.h:780
@ collisionsphere_scaleFactor
Definition: icollision.h:782
@ collisionsphere_node
Definition: icollision.h:781

◆ anonymous enum

anonymous enum
Enumerator
collisionmesh_params 
@ collisionmesh_params
Definition: icollision.h:1161

◆ anonymous enum

anonymous enum
Enumerator
collisionmesh_hit_face_index 
collisionmesh_hit_bary 
collisionmesh_node 
1164 {
1167 collisionmesh_node //using a node right now this really needs to be a TM but it does not look like tms are hooked up yet in pb2
1168 };
@ collisionmesh_hit_bary
Definition: icollision.h:1166
@ collisionmesh_hit_face_index
Definition: icollision.h:1165
@ collisionmesh_node
Definition: icollision.h:1167