My player isn't colliding with the things he should definitely
by Kevin James · in Torque Game Builder · 06/28/2008 (6:33 pm) · 4 replies
My player isn't colliding with the things he should definitely be colliding with.
ie: His collision send / receive is on, the graph groups and layers and collision groups and layers all match up. All the necessary objects have collision enabled with everything right. But he still just goes through the ground like a hot knife through margarine. Do physics send / receive have to be turned on for him not to go through the ground?
I didn't have to enable physics before! Sorry, I realize this isn't a whole lot of info, but I have checked and double checked everything -- I am basically wondering if anyone has gone through something similar.
Thanks!
ie: His collision send / receive is on, the graph groups and layers and collision groups and layers all match up. All the necessary objects have collision enabled with everything right. But he still just goes through the ground like a hot knife through margarine. Do physics send / receive have to be turned on for him not to go through the ground?
I didn't have to enable physics before! Sorry, I realize this isn't a whole lot of info, but I have checked and double checked everything -- I am basically wondering if anyone has gone through something similar.
Thanks!
About the author
Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/
#2
They way I understood it, and thus rationalized that behavior is that colliding with something doesn't haven't to mean physically. I may want to use collision to perform some action when one or more objects inhabit the same space, but not necessarily have them physically respond to the collision.
Hitting the ground and stopping is a very physically response. Sorry, I wish I could provide some help. But all I can confirm is that my objects fall though the ground with physics turned off too.
06/28/2008 (9:47 pm)
I'm still very new to all of this, but I've always had to have send physics turned to not have my objects fall though the ground.They way I understood it, and thus rationalized that behavior is that colliding with something doesn't haven't to mean physically. I may want to use collision to perform some action when one or more objects inhabit the same space, but not necessarily have them physically respond to the collision.
Hitting the ground and stopping is a very physically response. Sorry, I wish I could provide some help. But all I can confirm is that my objects fall though the ground with physics turned off too.
#3
06/28/2008 (11:26 pm)
Unstable is correct--"collision" doesn't mean there is a response to that collision. If you were to check the collision callback (function MyObject::onCollision(%this, ...) ) in this case, you'll see that the object would report it collided, but without physics turned on, it doesn't do anything due to the collision (except report the callback).
#4
I distinctly remember testing collision physics on one version of TGB, and the objects would still physically collide even if both had their physics turned off. Of course, my whole problem here was that I had not defined any physics for the player up until last night, so obviously both send and receive were set to true. After, I actually set them and for some reason thought they had been off up until this time, so I set them accordingly. The rest is history. Maybe that test a while ago had been faulty because I had not realized that at least one object had default physics on.
I'm pumped that my game is working again!
06/29/2008 (5:59 am)
Alright! Thanks guys! That goes to Phillip O'Shea as well, since he helped me on this too.I distinctly remember testing collision physics on one version of TGB, and the objects would still physically collide even if both had their physics turned off. Of course, my whole problem here was that I had not defined any physics for the player up until last night, so obviously both send and receive were set to true. After, I actually set them and for some reason thought they had been off up until this time, so I set them accordingly. The rest is history. Maybe that test a while ago had been faulty because I had not realized that at least one object had default physics on.
I'm pumped that my game is working again!
Torque Owner Kevin James
This problem doesn't make sense. I hate those ones.
[edit]
The strange thing is that I had the results I expected for at least 4 days. The player didn't go through terrain, and I didn't need to enable any physics. Then everything went crazy incomprehensible.