hustzion
14-06-2010 02:54:23
Hi All,
I am trying to use TreeCollision to detect the collision between a football and a player.
Just what you think,It doesn't work well .So how can I solve the problem?
Thanks all!!!
SFCBias
14-06-2010 03:05:23
Congratulations , now if you have a question you can start with some code maybe
hustzion
14-06-2010 07:22:07
SFCBias,
I am so sorry that the one thing I have done is to construct a treeCollision.
I read the code in OgreNewt for some days,but I still don't know how to continue coding.
NO more code except one line to contruct a TreeCollision indeed.
However,what I need is one METHOD.-------(Of course,a completed code file will be my preasure...

)
SFCBias
15-06-2010 03:22:12
well the only thing I can think of atm is to try to use a convex collision maybe.
hustzion
15-06-2010 06:38:19
Actually,convex collision worse.
SFCBias
15-06-2010 16:54:30
What version of OgreNewt are you using?
hustzion
16-06-2010 07:36:27
The newest one,and Ogre-v1.7.0+Newton-v2.21;
mvelazquezm
16-06-2010 11:44:49
I think convexHull works!
An option:
- playground = TreeCollision. Treecollisions are for inmobile objects, like ground, trees, ....
- ball = Convexhull. But first you can try with CollisionPrimitives like box or capsule
- player = Convexhull.
See the demos that come with OgreNewt, because tutorials have out of date code.
start with playground and a simple box and then try with capsule or convexhull.
Greetings
SFCBias
16-06-2010 17:15:58
Yes thats how this generally works im certain, and if you're attempting to add ragdoll effects then you need to make a collision object for each part of the body. So if a simple convexHull isn't working then some code may be necessary