are collisions a one way road?

Panda3D Forum Index -> Scripting Issues Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ISOmorph


Posts: 12
Location: Germany

PostPosted: Thu Jan 04, 2007 2:02 pm    Post subject: are collisions a one way road? Reply with quote
Hi all,

i'm working on a tabletop football game, that i want to interact with ARToolkit later on for a small university project. I used the script from the collision detection tutorial provided with Panda3D to start off. I'm pretty satisfied with the results so far, i just have one problem that remains to be solved:
the football collides with the walls and players, so far so good, but sadly the players just don't want to collide with the ball. My guess is that it has something to do with setIntoCollideMask and setFromCollideMask, but i can't get it to work.
I'd really appreciate if someone could spare some time to look at the code and help me out. thanx in advance.

the code is located here: http://www.firstblood.de/autafoo.py
the entire game is located here: http://www.firstblood.de/autafoo.zip
ynjh_jo


Posts: 1596
Location: Malang, Indonesia

PostPosted: Sun Jan 07, 2007 10:11 am    Post subject: Reply with quote
Panda supports collision sphere and ray as the "from" object. Polygon is not possible to become "from" object. For your scene, you might want to look at --[THIS]--
_________________
http://ynjh.panda3dprojects.com | http://ynjh.p3dp.com
Intel P4Prescott 2.8GHz HT | Elixir 1.5GB | ATI HD4670 1GB GDDR3
Shaba1


Posts: 171

PostPosted: Wed Jan 10, 2007 6:17 pm    Post subject: Reply with quote
Could someone take the time to explain exactly what the %in and %fr objects are and what they mean. I read the explanation in the PDF version of the manual and got confused. I know that edition(pdf) of the manual is old. I will check out the most recent updates to the manual but still it was very confusing.
Display posts from previous:   
Post new topic   Reply to topic    Panda3D Forum Index -> Scripting Issues All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group