Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] SetObjectShapeConvexHull( objID ) creates a hit area larger than the shape when using a plane

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 10th Nov 2018 21:24 Edited at: 11th Nov 2018 00:48
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Nov 2018 09:44
If anyone has any ideas on this issue i would really appreciate it.
Thanks
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 19th Nov 2018 15:14
Maybe use SetObjectShapeBox() ??

Set X and Y to the size of the plane and make Z a small number (0.1 or so) to anable collisions rather than trying to use a convex hull when a plan is infinately thin.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Nov 2018 18:51
Ultimately it's for a non standard shape. Think of the ducks in a duckshoot carnival arcade
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 20th Nov 2018 13:48
A 3d convex hull collision shape does not work for a 2d object.
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2024-09-30 23:11:37
Your offset time is: 2024-09-30 23:11:37