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 / Help with 3D physics

Author
Message
JohnStabler
AGK Bronze Backer
10
Years of Service
User Offline
Joined: 16th Aug 2013
Location: Cardiff, Wales, UK
Posted: 17th Jan 2019 11:06
Hi,

I have an object which I've created a static body for which acts, basically, as a terrain. I need to create a physics-based vehicle to move around it and thought I'd implement it by creating a body object and then adding wheels (e.g. cylinders) via joints. Am I right in thinking that Create3DPhysicsHingeJoint() is what I should be using? If so, does anybody have any working code I could take a look at? I'm a bit disappointed with the documentation on this function as it doesn't seem to be clear how it should be used. For example, what is the position vector in relation to the two objects that are joined?

Thanks
John
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 17th Jan 2019 11:27
hinge joint would be like a door so no, take a look at this thread for a working example of vehicle physics
life's one big game
spec= i5 4ghz, 16gb ram, Nvidia 1070ti gpu
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 17th Jan 2019 11:48
blink0k has started a thread and has some source you may find handy
https://forum.thegamecreators.com/thread/223365
fubar

Login to post a reply

Server time is: 2024-04-25 09:02:06
Your offset time is: 2024-04-25 09:02:06