Relationship between Collision and Physics components
by Ty Newton · in Torque X 2D · 01/11/2007 (3:46 pm) · 6 replies
Hi,
When I setup my object to have both Physics and Collision components I can define the collision response in 2 places: in the Physics and in the Collision.
Do I have to put the same option in both e.g. RigidBody or does one override the other or can I setup some funky stuff by setting different options?
Thanks
T
When I setup my object to have both Physics and Collision components I can define the collision response in 2 places: in the Physics and in the Collision.
Do I have to put the same option in both e.g. RigidBody or does one override the other or can I setup some funky stuff by setting different options?
Thanks
T
#2
01/12/2007 (1:00 am)
Thanks, that makes sense.
#3
01/16/2007 (4:35 am)
I think this has been changed already because I'm only seeing Resolve on the physics component.
#4
01/16/2007 (8:40 am)
Resolve is only on the physics component yes, but the collision component is where you set the 'onCollide' and stuff. I would like to see the resolve move to the collision component.
#5
I agree with Jonathon. Having the resolve next to the onCollision option would make it simpler. Although looking at the interface I can guess how the underlying code works and it would probably be a difficult change to code.
01/16/2007 (6:38 pm)
Hi,I agree with Jonathon. Having the resolve next to the onCollision option would make it simpler. Although looking at the interface I can guess how the underlying code works and it would probably be a difficult change to code.
#6
It appears they had it there because they maybe originally weren't going to have a collision component, and then added one?
01/16/2007 (7:29 pm)
Nah, it wouldn't be very difficult at all (I have seen the code).It appears they had it there because they maybe originally weren't going to have a collision component, and then added one?
Torque 3D Owner Jonathon Stevens
The Physics component is for setting what physics collision resolve should happen to the object itself.
You would set the Rigid resolve in the physics component only.