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.

Dark Physics & Dark A.I. & Dark Dynamix / Adjusting body relative to camera

Author
Message
Coldfire
16
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 3rd Feb 2011 04:40
Hello. Haven't really messed around too much with Dark Physics so I dusted it off and decided to try recreating physics similar to Marble Blast( I've been missing Marble Blast Online ). I got it working relatively easy with one exception. I'm having difficulty applying torque relative to the camera's y rotation. I'm sure someone else has done something similar so I would like to ask how. I'd assume that you would use sin in the calculation, but thats one aspect of math that has puzzled me. Thanks for any help.

Randy
Coldfire
16
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 3rd Feb 2011 19:01
How about a command for applying torque based on an angle instead of on all three axis? I could use a dummy object along with move object to find the calculation I'd need, but that doesn't seem too elegant and would like to avoid that route.
Coldfire
16
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 4th Feb 2011 03:09 Edited at: 4th Feb 2011 07:15
Eventually was able to get it by using the following:



Hope it may help someone else as well.

Edit: Attached a Demo of my progress.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 14:09:47
Your offset time is: 2024-11-24 14:09:47