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 / Phy Set Character Controller Displacement for strafing?

Author
Message
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 14th Aug 2009 18:54
Right, I've been trying to get strafing to work on a Character Controller with the following code:


However it doesn't seem to have any effect at all. Is this me doing something wrong or what?

It's not the world that turns against you, it's you that turns against the world.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Aug 2009 18:57 Edited at: 14th Aug 2009 19:00
quickest way is to rotate the object to the direction you wish to strafe, move it, then put it back in the direction is was at, while keeping the camera viewing in the forward direction.

edit


Dark Physics makes any hot drink go cold.
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 14th Aug 2009 20:33 Edited at: 14th Aug 2009 20:50
Hmm, Brilliant actually! My Character Controller is an invisible sphere surrounding a Character... So this would definitly work with some minor adjustments the player wouldn't even see the rotation

Thanks.

EDIT : Nevermind, that doesn't work at all, it just makes the player strafe along a fixed axis somehow :/

EDIT2 : Me and my stupidity forgot to add Object Angle Y() I fixed it.

It's not the world that turns against you, it's you that turns against the world.

Login to post a reply

Server time is: 2024-04-23 17:01:55
Your offset time is: 2024-04-23 17:01:55