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 DBPro Corner / How to strafe when movement is binded to and object?

Author
Message
Ultear
14
Years of Service
User Offline
Joined: 2nd Sep 2010
Location:
Posted: 2nd Sep 2010 18:57
I wanted to know how to strafe when i'm moving the camera together with an object, because this way i can use collision detection for the object.


This is the code i'm using. I just wanted to know how to make it strafe. Or if anyone can help how to make collision detection if i'm only using a camera, that'd be great too.
Alpha Mike
14
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: Bristol, UK
Posted: 2nd Sep 2010 21:24
What I tend to do is at the end of the code I write:



This means that the object is always rotated in the way the camera is pointing and the camera is positioned in the same position as the object.


Hope that helps!

Login to post a reply

Server time is: 2024-11-24 11:26:53
Your offset time is: 2024-11-24 11:26:53