This project is read-only.

How to make objects fall off the edge of a surface bound to a marker node

May 13, 2009 at 3:58 PM

Hi Ohan,

Hope you are well.  Well done on version 3.2.  It's very stable and the new tutorials are very helpful.

I am hoping that you can help me with a problem which I am struggling with.  I suspect the solution will be relatively straight forward!

I want an object (say a soccer ball) to effectively roll off the edge of a surface which is bound to a marker node.  The marker node would be positioned in the real-world such that the soccer ball would appear to fall off of a real desktop (or table top).

Just to give you a little background - I have an animated character which loiters about a surface which is bound to my 'base0' marker node.  I introduce soccer balls via a 'toolbar0' marker and drop them into the 'base0' marker's world coordinate space (when I press a key). At this point the Newton physics engine takes over and the ball falls to the ground (base0 surface) and bounces a little.  The animated character then runs toward the ball.  The collision knocks the ball off the screen.  This is fine when the character kicks the ball off the left or right-hand-side of the screen, however if she kicks the ball down the Y axis (away from the camera and off the edge of the table) the ball appears to be suspected in mid-air, which of course spoils the illusion.

So I think the really questions is, How do I make the world coordinates much lower (in the Z-Axis (height) for the virtual space which surrounds the surface bound to the marker node.

As always, I hope this makes sense.

Regards
Simon

 

 

 

 

Coordinator
May 15, 2009 at 12:43 AM

It sounds like that you don't have a big enough simulation world, which causes the simulation to stop. How big is your board? As mentioned on the documentation in physics simulation, you may need to enlarge NewtonPhysics.WorldSize if your simulation space is larger than 100x100x100 cube. Changing the WorldSize to larger size may resolve your issue.

Thanks

Ohan

May 15, 2009 at 12:28 PM

Hi Ohan,

Thanks for your suggestion.  I'll try this out over the next couple of days and post my findings.

Cheers

Simon