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 Studio Chat / Recommended way for having a 3D Bullet

Author
Message
MMT
6
Years of Service
User Offline
Joined: 12th Mar 2018
Location:
Posted: 9th Oct 2020 19:30
so... simple thing, you have a gun that shoots a bullet. What is the recommended way in AppGameKit to simulate the flight and check for collision? I guess I could come up with various ways, but before I reinvent the wheel is there a simple solution?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Oct 2020 20:57
Use ray casting
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 10th Oct 2020 03:36
You can use a direct point to point Raycast or create a gravity system where you would need multiple raycasts in order to check for collision on the trajectory.

Login to post a reply

Server time is: 2024-04-18 13:40:21
Your offset time is: 2024-04-18 13:40:21