Game Development Community

Rigid Collisions

by Nick Gravelyn · in Torque X 2D · 10/22/2007 (12:43 pm) · 3 replies

Is there a way to control the friction or bounciness of objects when using the rigid body collision system? Just curious before I go out of my way to write some components. Thanks.

#1
10/22/2007 (2:18 pm)
If you go to the Edit pane with nothing else selected, you can create Collision Materials in the Scene Data rollout, where you can set the friction and restitution. You can then update the CollisionMaterial property of the T2DCollisionComponent to your new material.
#2
10/22/2007 (3:21 pm)
Excellent. Thank you. One more question: why can't I edit collision materials? That makes it really hard to tweak those properties if I have to keep deleting them, making new ones, and setting those new ones.
#3
10/22/2007 (3:42 pm)
"Why" is a hard question to answer. I agree it is kind of annoying. I'll make a note of it as a usability issue.