#ifndef DYNCONSTRAINTOBJECT_H__
#define DYNCONSTRAINTOBJECT_H__

enum
{
	CONSTRAINT_JOINT_TYPE_COMPOUND = -1,
	CONSTRAINT_JOINT_TYPE_HINGE = 0,
	CONSTRAINT_JOINT_TYPE_CARDAN = 1,
	CONSTRAINT_JOINT_TYPE_BALLSOCKET = 2,
	CONSTRAINT_JOINT_TYPE_RAGDOLL = 3,
	CONSTRAINT_JOINT_TYPE_SLIDER = 4,
	CONSTRAINT_JOINT_TYPE_ROT_SLIDER = 5,
	CONSTRAINT_JOINT_TYPE_FIXED = 6,
	CONSTRAINT_JOINT_TYPE_PLANAR = 7,
	CONSTRAINT_JOINT_TYPE_BOX = 8,
	CONSTRAINT_JOINT_TYPE_WHEEL = 9,

	CONSTRAINT_IGNORE_COLLISIONS = 12311,
	CONSTRAINT_LIMIT_RESTITUTION = 12312,

	CONSTRAINT_ROT1_LIMIT = 12401,
	CONSTRAINT_ROT1_LIMIT_MIN = 12402,
	CONSTRAINT_ROT1_LIMIT_MAX = 12403,
	CONSTRAINT_ROT1_USE_BREAKING_TORQUE = 12404,
	CONSTRAINT_ROT1_BREAKING_TORQUE = 12405,
	CONSTRAINT_ROT2_LIMIT = 12411,
	CONSTRAINT_ROT2_LIMIT_MIN = 12412,
	CONSTRAINT_ROT2_LIMIT_MAX = 12413,
	CONSTRAINT_CONE_LIMIT_RADIUS = 12421,
	CONSTRAINT_CONE_LIMIT_ELLIPTICAL = 12422,
	CONSTRAINT_CONE_LIMIT_RADIUS2 = 12423,
	CONSTRAINT_WHEEL_ANGLE = 12424,
	CONSTRAINT_WHEEL_REST_POSITION = 12425,
	CONSTRAINT_WHEEL_STIFFNESS = 12426,
	CONSTRAINT_WHEEL_DAMPING = 12427,

	CONSTRAINT_TRANS1_LIMIT_USE_MIN = 12431,
	CONSTRAINT_TRANS1_LIMIT_MIN = 12432,
	CONSTRAINT_TRANS1_LIMIT_USE_MAX = 12433,
	CONSTRAINT_TRANS1_LIMIT_MAX = 12434,
	CONSTRAINT_TRANS1_USE_BREAKING_FORCE = 12435,
	CONSTRAINT_TRANS1_BREAKING_FORCE = 12436,
	CONSTRAINT_TRANS2_LIMIT_USE_MIN = 12441,
	CONSTRAINT_TRANS2_LIMIT_MIN = 12442,
	CONSTRAINT_TRANS2_LIMIT_USE_MAX = 12443,
	CONSTRAINT_TRANS2_LIMIT_MAX = 12444,
	CONSTRAINT_TRANS3_LIMIT_USE_MIN = 12451,
	CONSTRAINT_TRANS3_LIMIT_MIN = 12452,
	CONSTRAINT_TRANS3_LIMIT_USE_MAX = 12453,
	CONSTRAINT_TRANS3_LIMIT_MAX = 12454,

	CONSTRAINT_GROUP_CACHE = 12490,
	CONSTRAINT_CACHE_LOCAL = 12491,
	CONSTRAINT_CACHE_USE = 12492,
	CONSTRAINT_CACHE_CLEAR = 12493,
	CONSTRAINT_CACHE_MEMORY = 12499,

	CONSTRAINT_OBJECT_LIST = 13000,
	CONSTRAINT_OBJECT_INTERACTION_SETTINGS = 13001,
	CONSTRAINT_OBJECT_INTERACTION_UI_LINK = 13002,

	CONSTRAINT_OBJECT_GENERATION_GROUP = 13003,
	CONSTRAINT_OBJECT_AUTO_GENERATE = 13004,
	CONSTRAINT_OBJECT_GENERATE_BUTTON = 13005,
	CONSTRAINT_OBJECT_CLEAR_BUTTON = 13006,
	CONSTRAINT_OBJECT_GENERATION_MODE = 13007,
		CONSTRAINT_OBJECT_GENERATION_MODE_INDEX = 0,
		CONSTRAINT_OBJECT_GENERATION_MODE_DISTANCE = 1,
	CONSTRAINT_OBJECT_GENERATION_CONNECT_LAST_FIRST = 13008,
	CONSTRAINT_OBJECT_GENERATION_ALIGN = 13009,
	CONSTRAINT_OBJECT_ADDMISCBUTTON = 13010,
		CONSTRAINT_OBJECT_ADDMISCBUTTON_GROUP = 0,
	CONSTRAINT_OBJECT_GENERATION_SEARCH_RADIUS = 13011,
	CONSTRAINT_OBJECT_GENERATION_LIMIT_CONNECTIONS = 13012,
	CONSTRAINT_OBJECT_GENERATION_MAX_CONNECTIONS = 13013,

	CONSTRAINT_TRANS1_BREAKING_FORCE_WEIGHTS = 13014,
	CONSTRAINT_ROT1_BREAKING_TORQUE_WEIGHTS = 13015,
	CONSTRAINT_TRANS1_USE_BREAKING_FORCE_SELECTION = 13016,
	CONSTRAINT_ROT1_USE_BREAKING_TORQUE_SELECTION = 13017,
	CONSTRAINT_IGNORE_COLLISIONS_SELECTION = 13018,

	CONSTRAINT_LIMIT_RESTITUTION_WEIGHTS = 13019,
	CONSTRAINT_TRANS2_LIMIT_USE_MIN_SELECTION = 13020,
	CONSTRAINT_TRANS2_LIMIT_MIN_WEIGHTS = 13021,
	CONSTRAINT_TRANS2_LIMIT_USE_MAX_SELECTION = 13022,
	CONSTRAINT_TRANS2_LIMIT_MAX_WEIGHTS = 13023,
	CONSTRAINT_TRANS3_LIMIT_USE_MIN_SELECTION = 13024, 
	CONSTRAINT_TRANS3_LIMIT_MIN_WEIGHTS = 13025,
	CONSTRAINT_TRANS3_LIMIT_USE_MAX_SELECTION = 13026,
	CONSTRAINT_TRANS3_LIMIT_MAX_WEIGHTS = 13027,
	CONSTRAINT_TRANS1_LIMIT_USE_MIN_SELECTION = 13028,
	CONSTRAINT_TRANS1_LIMIT_MIN_WEIGHTS = 13029,
	CONSTRAINT_TRANS1_LIMIT_USE_MAX_SELECTION = 13030,
	CONSTRAINT_TRANS1_LIMIT_MAX_WEIGHTS = 13031,
	CONSTRAINT_ROT1_LIMIT_SELECTION = 13032,
	CONSTRAINT_ROT1_LIMIT_MIN_WEIGHTS = 13033,
	CONSTRAINT_ROT1_LIMIT_MAX_WEIGHTS = 13034,
	CONSTRAINT_ROT2_LIMIT_SELECTION = 13035,
	CONSTRAINT_ROT2_LIMIT_MIN_WEIGHTS = 13036,
	CONSTRAINT_ROT2_LIMIT_MAX_WEIGHTS = 13037,

	CONSTRAINT_OBJECT_PLACEMENT_GROUP = 13038,
	CONSTRAINT_OBJECT_PLACEMENT_REFERENCE_MODE = 13039,
		CONSTRAINT_OBJECT_PLACEMENT_REFERENCE_MODE_COM = 0,
		CONSTRAINT_OBJECT_PLACEMENT_REFERENCE_MODE_LOCALSPACEA = 1,
		CONSTRAINT_OBJECT_PLACEMENT_REFERENCE_MODE_LOCALSPACEB = 2,
		CONSTRAINT_OBJECT_PLACEMENT_REFERENCE_MODE_CLOSESTPOINTS = 3,
	CONSTRAINT_OBJECT_PLACEMENT_OFFSET = 13040,
	CONSTRAINT_OBJECT_PLACEMENT_OFFSET_LOCAL = 13041,
	CONSTRAINT_OBJECT_PLACEMENT_ORIENTATION_MODE = 13042,
		CONSTRAINT_OBJECT_PLACEMENT_ORIENTATION_MODE_NONE = 0,
		CONSTRAINT_OBJECT_PLACEMENT_ORIENTATION_MODE_OBJECTA = 1,
		CONSTRAINT_OBJECT_PLACEMENT_ORIENTATION_MODE_OBJECTB = 2,
		CONSTRAINT_OBJECT_PLACEMENT_ORIENTATION_MODE_AUTOALIGN = 3,

	CONSTRAINT_DUMMY
};

#endif // DYNCONSTRAINTOBJECT_H__
