Collision with a simple segment ?

66 views
Skip to first unread message

Thomas John

unread,
Apr 19, 2016, 1:15:44 PM4/19/16
to Nape Physics
Hi,

I would like to know if it's possible to have collisions with segments ? I don't want to have boxes, just a simple and thin line segment.
And if that's not possible, do you think it would be possible to use very thin boxes ? (1 pixel wide)

Thanks

tom.

T1m_

unread,
May 11, 2016, 6:58:39 AM5/11/16
to Nape Physics
You can try to use RayCast for it. It is not a real collision, but it allows to you find intersection with "thin" objects. But if you need a physics simulation, there is no way except thin rectangles. Just make sure you uses isBullet property for your collider body.

Thomas John

unread,
Oct 28, 2016, 11:47:09 AM10/28/16
to Nape Physics
yes I need physics simulation, I guess I'll go with thin rectangles
thx
Reply all
Reply to author
Forward
0 new messages