Monday, 22 March 2010

playing around with crysis sandbox editor...

Hello,

today i was experimenting on a "shoot the lights out scene" and finally i have build something pretty working.
In fact you can aim with your gun take the light out and instantly a particle effect is spawned, the
lamp drops and a destroyed lamp is spawned replacing the current lampModel.

Conditions for this to work are the following:
1.) make two breakable objects one lamp and one placeholder-lamp with a "destroyed"- texture ->
2.) define a BasicEntity and attach the "healthy" model to it and make sure the entity uses physics and has a mass.
3.) add constraints (magnets with orbitals) from editor physics and attach the basic entity from 2.) to it, we will use the constrains and the maximum forces and torques to define whether it can and when the constraints will become broken in order for your lamp to drop to the ground after shooting it.
3.) now use the flowgraph and query the constraint if broken or not, the "on brake event" should swap the model in the BasicEntity

UPDATE: i made this post back in 2010 and just wanted to overhaul it a bit, sry the pics are lost due to a blog update.
For all who are interested in cryengine 3 and above editor and engine details, this is the place to go docs cryngine( editor, engine, technical details)