Foros - Stratos

Proyectos => Jad Engine => Mensaje iniciado por: auron en 05 de Febrero de 2006, 07:43:04 PM

Título: More Questions...
Publicado por: auron en 05 de Febrero de 2006, 07:43:04 PM
 Yet some more questions... I hope I'm not getting annoying...  :lol:

I was playing around with the physics on an open area and I noticed that if objects reach a certain height or go beyond a certain point, it freezes and doesn't move anymore. Is there some way to increase the size of this "freeze boundary"?

Also, do rigid bodies have an adjustable Bounce variable? That way, for instance,  I could create a bouncy ball.
All I could find on the HRigidBody object was LinearDamping and Mass.
Título: More Questions...
Publicado por: Haddd en 05 de Febrero de 2006, 07:56:25 PM
 You must change the Newton's world size. This is managed from the engine, but when you are building a collision tree, so you must code it to work:

 
Haddd.Physics.SetWorldSize(ref min, ref max);


About bouncing...Newton works with materials. You should define the interaction between all the pairs groups of materials... :blink: This is the right way Newton handles this. Please, check the Newtons web to lear how to.

Haddd builds a Haddd.Physics.DefaultMaterial, and this is the Newton's default material, so if you want to change some properties, you should do:


Haddd.Physics.DefaultMaterial.SetDefaultElasticity(...);


But this changes the elasticity of every object. So, you shpuld create a HPMaterial for each differente material, and call the SetDefaultElasticity to indicate the values for each pair.

If you send me the project i can help you... ;)  
Título: More Questions...
Publicado por: auron en 05 de Febrero de 2006, 08:17:56 PM
 Thanks Haddd. =)
I'll give it shot myself... If I have any problems I'll get back to you. =D