1 / 9

Simple Physics Game: Creating Interactive Experiences with jMonkeyEngine

Explore the development of an interactive physics-based game using jMonkeyEngine. This comprehensive guide dives into the core components of the Simple Physics Game. Learn how to initialize the game, manage input handling, and implement collision detection within a physics space. We'll examine classes like BaseSimpleGame, InputHandler, and OdePhysicsSpace, revealing how actions, triggers, and collision events work together to create engaging gameplay. This resource is ideal for both beginners and experienced developers looking to enhance their understanding of physics programming in game development.

shawna
Download Presentation

Simple Physics Game: Creating Interactive Experiences with jMonkeyEngine

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace update() update() addAction() computeTimeStep() com.jmex.physics.PhysicsSpace iterateContacts() addAction() processTriggers() reusableContactInfo() collisionEvent() addDevice() devices activeTriggers com.jme.input. InputHandler.DevicesMap com.jmex.physics. impl.ode.OdePhysicsSpace$1 com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList org.odejava.collision. Contact com.jmex.physics. contact.PendingContact contact getDeviceMap() get() ReusableContactInfo() devices Map getGeom2() set() getNode2() Java.util.concurrent. ConcurrentMap getNode2() inputHandler odeContact geom2 node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger org.odejava. Geom get () getPhysicsobject() checkActivation() performAction() physics Object GeomTransform() com.jme.input.ActionTrigger com.jme.input.util. UtilInputHandlerDevice com.jmex.physics. impl.ode.DynamicPhysicsNodeImpl activate() performAction() createTriggers() get() ActionTrigger() com.jmex.physics.PhysicsNode SyntheticTrigger() addButton() getCollisionEventHandler() Lesson8$2 action collisionEventHandler buttons performAction() com.jme.input.util. SyntheticButton com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  2. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace update() update() addAction() computeTimeStep() com.jmex.physics.PhysicsSpace iterateContacts() addAction() processTriggers() reusableContactInfo() collisionEvent() addDevice() devices activeTriggers com.jme.input. InputHandler.DevicesMap com.jmex.physics. impl.ode.OdePhysicsSpace$1 com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList org.odejava.collision. Contact com.jmex.physics. contact.PendingContact contact getDeviceMap() get() ReusableContactInfo() devices Map getGeom2() set() getNode2() Java.util.concurrent. ConcurrentMap getNode2() inputHandler odeContact geom2 node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger org.odejava. Geom get () getPhysicsobject() checkActivation() performAction() physics Object GeomTransform() com.jme.input.ActionTrigger com.jme.input.util. UtilInputHandlerDevice com.jmex.physics. impl.ode.DynamicPhysicsNodeImpl activate() performAction() createTriggers() get() ActionTrigger() com.jmex.physics.PhysicsNode SyntheticTrigger() addButton() getCollisionEventHandler() Lesson8$2 action collisionEventHandler buttons performAction() com.jme.input.util. SyntheticButton com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  3. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace update() update() addAction() computeTimeStep() com.jmex.physics.PhysicsSpace iterateContacts() addAction() processTriggers() reusableContactInfo() collisionEvent() addDevice() devices activeTriggers com.jme.input. InputHandler.DevicesMap com.jmex.physics. impl.ode.OdePhysicsSpace$1 com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList org.odejava.collision. Contact com.jmex.physics. contact.PendingContact contact getDeviceMap() get() ReusableContactInfo() devices Map getGeom2() set() getNode2() Java.util.concurrent. ConcurrentMap getNode2() inputHandler odeContact geom2 node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger org.odejava. Geom get () getPhysicsobject() checkActivation() performAction() physics Object GeomTransform() com.jme.input.ActionTrigger com.jme.input.util. UtilInputHandlerDevice com.jmex.physics. impl.ode.DynamicPhysicsNodeImpl activate() performAction() createTriggers() get() ActionTrigger() com.jmex.physics.PhysicsNode SyntheticTrigger() addButton() getCollisionEventHandler() Lesson8$2 action collisionEventHandler buttons performAction() com.jme.input.util. SyntheticButton com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  4. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace update() update() addAction() computeTimeStep() com.jmex.physics.PhysicsSpace iterateContacts() addAction() processTriggers() reusableContactInfo() collisionEvent() addDevice() devices activeTriggers com.jme.input. InputHandler.DevicesMap com.jmex.physics. impl.ode.OdePhysicsSpace$1 com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList org.odejava.collision. Contact com.jmex.physics. contact.PendingContact contact getDeviceMap() get() ReusableContactInfo() devices Map getGeom2() set() getNode2() Java.util.concurrent. ConcurrentMap getNode2() inputHandler odeContact geom2 node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger org.odejava. Geom get () getPhysicsobject() checkActivation() performAction() physics Object GeomTransform() com.jme.input.ActionTrigger com.jme.input.util. UtilInputHandlerDevice com.jmex.physics. impl.ode.DynamicPhysicsNodeImpl activate() performAction() createTriggers() get() ActionTrigger() com.jmex.physics.PhysicsNode SyntheticTrigger() addButton() getCollisionEventHandler() Lesson8$2 action collisionEventHandler buttons performAction() com.jme.input.util. SyntheticButton com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  5. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace update() update() addAction() computeTimeStep() com.jmex.physics.PhysicsSpace iterateContacts() addAction() processTriggers() reusableContactInfo() collisionEvent() addDevice() devices activeTriggers com.jme.input. InputHandler.DevicesMap com.jmex.physics. impl.ode.OdePhysicsSpace$1 com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList org.odejava.collision. Contact com.jmex.physics. contact.PendingContact contact getDeviceMap() get() ReusableContactInfo() devices Map getGeom2() set() getNode2() Java.util.concurrent. ConcurrentMap getNode2() inputHandler odeContact geom2 node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger org.odejava. Geom get () getPhysicsobject() checkActivation() performAction() physics Object GeomTransform() com.jme.input.ActionTrigger com.jme.input.util. UtilInputHandlerDevice com.jmex.physics. impl.ode.DynamicPhysicsNodeImpl activate() performAction() createTriggers() get() ActionTrigger() com.jmex.physics.PhysicsNode SyntheticTrigger() addButton() getCollisionEventHandler() Lesson8$2 action collisionEventHandler buttons performAction() com.jme.input.util. SyntheticButton com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  6. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace update() update() addAction() computeTimeStep() com.jmex.physics.PhysicsSpace iterateContacts() addAction() processTriggers() reusableContactInfo() collisionEvent() addDevice() devices activeTriggers com.jme.input. InputHandler.DevicesMap com.jmex.physics. impl.ode.OdePhysicsSpace$1 com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList org.odejava.collision. Contact com.jmex.physics. contact.PendingContact contact getDeviceMap() get() ReusableContactInfo() devices Map getGeom2() set() getNode2() Java.util.concurrent. ConcurrentMap getNode2() inputHandler odeContact geom2 node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger org.odejava. Geom get () getPhysicsobject() checkActivation() performAction() physics Object GeomTransform() com.jme.input.ActionTrigger com.jme.input.util. UtilInputHandlerDevice com.jmex.physics. impl.ode.DynamicPhysicsNodeImpl activate() performAction() createTriggers() get() ActionTrigger() com.jmex.physics.PhysicsNode SyntheticTrigger() addButton() getCollisionEventHandler() Lesson8$2 action collisionEventHandler buttons performAction() com.jme.input.util. SyntheticButton com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  7. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace createBox() update() update() computeTimeStep() com.jmex.physics.PhysicsSpace createBox() iterateContacts() processTriggers() reusableContactInfo() collisionEvent() org.odejava.Geom activeTriggers org.odejava.collision. Contact com.jmex.physics. impl.ode.OdePhysicsSpace$1 getGeomFromNativeAddr() com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList com.jmex.physics. contact.PendingContact contact getGeom2() get() ReusableContactInfo() generatePhysicsGeometry() Java.util. HashMap geom2 set() getNode2() odeContact getNode2() inputHandler generatePhysicsGeometry() node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger get() org.odejava. Geom generatePhysicsGeometry() put() getPhysicsobject() checkActivation() performAction() generatePhysicsGeometry() physics Object GeomTransform() com.jme.input.ActionTrigger com.jmex.physics.impl.ode. DynamicPhysicsNodeImpl addPhysicsGeometries() activate() com.jmex.physics. PhysicsNode performAction() generatePhysicsGeometry() ActionTrigger() attachChild() addGeom() SyntheticTrigger() createPhysicsGeometry() createBox() getCollisionEventHandler() Lesson8$2 action collisionEventHandler performAction() com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  8. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace createBox() update() update() computeTimeStep() com.jmex.physics.PhysicsSpace createBox() iterateContacts() processTriggers() reusableContactInfo() collisionEvent() org.odejava.Geom activeTriggers org.odejava.collision. Contact com.jmex.physics. impl.ode.OdePhysicsSpace$1 getGeomFromNativeAddr() com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList com.jmex.physics. contact.PendingContact contact getGeom2() get() ReusableContactInfo() generatePhysicsGeometry() Java.util. HashMap geom2 set() getNode2() odeContact getNode2() inputHandler generatePhysicsGeometry() node2 org.odejava.GeomTransform com.jme.input.util.SyntheticTrigger get() org.odejava. Geom generatePhysicsGeometry() put() getPhysicsobject() checkActivation() performAction() generatePhysicsGeometry() physics Object GeomTransform() com.jme.input.ActionTrigger com.jmex.physics.impl.ode. DynamicPhysicsNodeImpl addPhysicsGeometries() activate() com.jmex.physics. PhysicsNode performAction() generatePhysicsGeometry() ActionTrigger() attachChild() addGeom() SyntheticTrigger() createPhysicsGeometry() createBox() getCollisionEventHandler() Lesson8$2 action collisionEventHandler performAction() com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

  9. Lesson8 com.jmex.physics.util.SimplePhysicsGame main() com.jme.app.BaseSimpleGame com.jme.app.BaseGame start() initGame() update() input simpleInitGame() com.jme.input. InputHandler physicsSpace com.jmex.physics. impl.ode.OdePhysicsSpace createBox() update() update() computeTimeStep() com.jmex.physics.PhysicsSpace createBox() iterateContacts() processTriggers() reusableContactInfo() collisionEvent() org.odejava.Geom activeTriggers org.odejava.collision. Contact com.jmex.physics. impl.ode.OdePhysicsSpace$1 getGeomFromNativeAddr() com.jmex.physics.impl.ode.OdePhysicsSpace. ReusableContactInfo Java.util.ArrayList com.jmex.physics. contact.PendingContact contact getGeom2() get() ReusableContactInfo() generatePhysicsGeometry() Java.util. HashMap geom2 set() getNode2() odeContact getNode2() inputHandler generatePhysicsGeometry() org.odejava.GeomTransform node2 com.jme.input.util.SyntheticTrigger get() org.odejava. Geom generatePhysicsGeometry() put() retrieveNativeAddr() checkActivation() performAction() generatePhysicsGeometry() physics Object GeomTransform() com.jme.input.ActionTrigger com.jmex.physics.impl.ode. DynamicPhysicsNodeImpl addPhysicsGeometries() activate() com.jmex.physics. PhysicsNode performAction() generatePhysicsGeometry() ActionTrigger() attachChild() addGeom() SyntheticTrigger() createPhysicsGeometry() createBox() getCollisionEventHandler() Lesson8$2 action collisionEventHandler performAction() com.jme.input.action.InputActionInterface SyntheticButton() trigger() createTrigger() buttonTriggers

More Related