Creating and updating physics objects

(Difference between revisions)
Jump to: navigation, search
(Created page with "WIP")
 
Line 1: Line 1:
WIP
+
 
 +
 
 +
'''WIP'''
 +
 
 +
 
 +
Unless you've set up the physics properties of an entity in the ''Maratis Editor'', physics won't be enabled for that entity. If you want to activate physics for the entity via code, you need two step:
 +
 
 +
1) create the [[MPhysicsProperties|physics properties]];
 +
 
 +
2) create the real physics object.
 +
 
 +
The [[MPhysicsContext|physics context]] is the what manages the game physics. [[MScene]] is using it to prepare all the necessary objects at the start of the scene, but you'll want to use it too if you want to change something in real time.

Revision as of 19:42, 20 October 2013


WIP


Unless you've set up the physics properties of an entity in the Maratis Editor, physics won't be enabled for that entity. If you want to activate physics for the entity via code, you need two step:

1) create the physics properties;

2) create the real physics object.

The physics context is the what manages the game physics. MScene is using it to prepare all the necessary objects at the start of the scene, but you'll want to use it too if you want to change something in real time.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox