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.

Newcomers AppGameKit Corner / (Basic) Can a 3D object use its actual shape as collision shape?

Author
Message
basicFanatic
6
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 27th Jul 2017 14:11
It sounds kind of fundamental, but I just can't find a way to do it!
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 1st Aug 2017 21:11 Edited at: 1st Aug 2017 21:12
You should use Cast functions (ObjectRayCast, ObjectSphereCast, ObjectSphereSlide). These functions will collide exactly with mesh triangles of existing objects if CollisionMode is activated for them. But between two meshes, you can't. Physics can also be used but it works only with Physics bodies which are bounding boxes.
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 15th Aug 2017 01:10
Although you can only use cast functions, just a simple intersection check would be extremely useful TBH. I agree and I'm surprised there's not such a check available.
There are limitations to cast functions because you'd have to check multiple casts for proper accuracy on irregular shapes.

Login to post a reply

Server time is: 2024-04-20 09:07:39
Your offset time is: 2024-04-20 09:07:39