Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2008, 12:45:19 AM (15 years ago)
Author:
rgrieder
Message:

Clarified use of different physical bodies. The "collisionType" XML attribute of WE specifies the following:
"none": There is not physical body at all. Physics disabled.
"static": It is a StaticEntity with physics. Any other derived class of WE issues an exception by choosing this collision type.
"kinematic" or "dynamic": MovableEntity with physics. StaticEntity issues an exception when choosing one of these two.

Added two new Exceptions: ParseError and PhysicsViolation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/util/Exception.h

    r2192 r2298  
    6060            FileNotFound,
    6161            Argument,
     62            PhysicsViolation,
     63            ParseError,
    6264            PluginsNotFound,
    6365            InitialisationFailed,
     
    123125            RETURN_EXCEPTION_CODE(FileNotFound);
    124126            RETURN_EXCEPTION_CODE(Argument);
     127            RETURN_EXCEPTION_CODE(PhysicsViolation);
     128            RETURN_EXCEPTION_CODE(ParseError);
    125129            RETURN_EXCEPTION_CODE(PluginsNotFound);
    126130            RETURN_EXCEPTION_CODE(InitialisationFailed);
     
    137141    CREATE_ORXONOX_EXCEPTION(FileNotFound);
    138142    CREATE_ORXONOX_EXCEPTION(Argument);
     143    CREATE_ORXONOX_EXCEPTION(PhysicsViolation);
     144    CREATE_ORXONOX_EXCEPTION(ParseError);
    139145    CREATE_ORXONOX_EXCEPTION(PluginsNotFound);
    140146    CREATE_ORXONOX_EXCEPTION(InitialisationFailed);
Note: See TracChangeset for help on using the changeset viewer.