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 / Moving objects in the direction i want

Author
Message
kkun
15
Years of Service
User Offline
Joined: 10th Jun 2009
Location:
Posted: 10th Mar 2010 01:51
i currently am in need of a way to move my cone in the direction its facing. If someone could help it would be awesome, ive been trying to implement my 2d knowledge but it isnt working too well.


Dia
19
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 10th Mar 2010 13:18
hey.... I have seen that code somewhere before

anyways, first things first

take the ' marks out from in front of the three lines before the sync. The ' mark signifies a comment, which is ignored when the code is run

once the ' marks are taken out, when the spacekey is let go, you will see the cone move away from the camera (i.e. "move object 1,5" will move the cone 5 units in the positive 'z' direction every loop)

I am guessing you want the cone to move in the direction the cone is pointing? In this case, we need to determine the movement angle at the time of firing. This is what Van B was getting at in your other post .

try something like this instead:



This is not the Sig you are looking for....

Login to post a reply

Server time is: 2024-11-24 20:51:28
Your offset time is: 2024-11-24 20:51:28