| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- /*
- Copyright (c) 2013 Daniele Bartolini, Michele Rossi
- Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
- */
- #pragma once
- namespace crown
- {
- typedef Id ActorId;
- typedef Id ControllerId;
- typedef Id TriggerId;
- //-----------------------------------------------------------------------------
- struct ActorType
- {
- enum Enum
- {
- STATIC,
- DYNAMIC_PHYSICAL,
- DYNAMIC_KINEMATIC
- };
- };
- //-----------------------------------------------------------------------------
- struct ShapeType
- {
- enum Enum
- {
- SPHERE,
- BOX,
- PLANE
- };
- };
- //-----------------------------------------------------------------------------
- struct CollisionGroup
- {
- enum Enum
- {
- GROUP_0 = (1<<0), // Collisions disabled
- GROUP_1 = (1<<1),
- GROUP_2 = (1<<2),
- GROUP_3 = (1<<3),
- GROUP_4 = (1<<4),
- GROUP_5 = (1<<5),
- GROUP_6 = (1<<6),
- GROUP_7 = (1<<7),
- GROUP_8 = (1<<8),
- GROUP_9 = (1<<9),
- GROUP_10 = (1<<10),
- GROUP_11 = (1<<11),
- GROUP_12 = (1<<12),
- GROUP_13 = (1<<13),
- GROUP_14 = (1<<14),
- GROUP_15 = (1<<15),
- GROUP_16 = (1<<16),
- GROUP_17 = (1<<17),
- GROUP_18 = (1<<18),
- GROUP_19 = (1<<19),
- GROUP_20 = (1<<20),
- GROUP_21 = (1<<21),
- GROUP_22 = (1<<22),
- GROUP_23 = (1<<23),
- GROUP_24 = (1<<24),
- GROUP_25 = (1<<25),
- GROUP_26 = (1<<26),
- GROUP_27 = (1<<27),
- GROUP_28 = (1<<28),
- GROUP_29 = (1<<29),
- GROUP_30 = (1<<30),
- GROUP_31 = (1<<31)
- };
- };
- } // namespace crown
|