3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: RigidBody Problem  (Read 869 times)

« on: September 20, 2009, 07:16:49 AM »
I need to move and reset Some Static RigidBodys (used as terrain).

I used "iObjectLocationReset" to move them (when they are not colliding with anything).
But the result is totally random: some times it works, some times not... (with the same script used in the same conditions).

Is there another way to do it?
Is "iObjectLocationReset" bugged?
I'm completely stuck with this...
« Reply #1 on: September 20, 2009, 08:12:02 AM »
What happens when you call the function? Doe it fail to relocate the object?

Resetting static RigidBodies may work better with iObjectLocationSet/iObjectOrientationSet

Alternaitvely you could try setting the mass or the terrain RigidBody to an extremely high value. It would make it a dynaimc body, from engine point of view, but elimitating issues related to static rigidbodies.
« Reply #2 on: September 20, 2009, 08:37:29 AM »
Yes, it fail to relocate the object.

The idea is having 1 Collision RigidBody (50 meters*50 meters plane) under the player and 8 other Collision RigidBody around.
Then, when the player reach one of the surrounding Collision RigidBody:
Move and reset 3 Collision RigidBody in front of the player, expending the terrain collision.

I'll try your solutions, thanks for answering :)
« Last Edit: September 20, 2009, 08:40:48 AM by IronF »
« Reply #3 on: September 24, 2009, 06:07:07 AM »
why dont you try one of the events and change it to reset?
Pages: [1]