returning a display object that contains nape physics

54 views
Skip to first unread message

elieD

unread,
Aug 27, 2016, 8:08:20 PM8/27/16
to Nape Physics

Hi all,

I'm running into a wall trying to figure this out, any guidance would be truly appreciated.

I would like to return a display object (e.g square) where inside of the square contains a physics world and a ball that respects the inside walls of the square.

Here is an image that further details it
https://s22.postimg.org/4z792775t/info.jpg

any guidance will truly be appreciated, thanks again 

T1m_

unread,
Sep 1, 2016, 7:54:20 AM9/1/16
to Nape Physics
Can you explain more detail what are you trying to achieve? Do you need build some graphic object from phys bodies?

Thomas John

unread,
Oct 27, 2016, 6:38:19 PM10/27/16
to Nape Physics
I think what you want is to have objects bounce inside your square.
I don't think you can do that.
Instead, you need to have 4 walls that make your square and put your bouncing balls inside those 4 walls.
A physic object is a plain object that is not supposed to contain other physic objects (unless I'm wrong, but then correct me as this would also ease my pain on something I'm trying to achieve)

Andy Croft

unread,
May 9, 2017, 4:05:12 PM5/9/17
to Nape Physics
I don't think you would need a separate physics world for EACH square.  You could have them all within the same universe, but apply "children" objects within the boundaries of a parent.

Check out the samples page, here, and scroll down to Portals.  It is a complex example, however, this definitely has "container" objects and "content" tumbling around.  You could likely derive an idea from there!
Reply all
Reply to author
Forward
0 new messages