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 / movement code doesnt work right

Author
Message
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 22nd May 2004 07:34
this code is supposed to make this object go in which ever direction its facing.... but it doesnt seem to want to

Also how would i find the direction something is facing?

DANGIT NEO, YOU CHANGED THE CODE AND NOW THE MATRIX WONT TEXTURE RIGHT.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 22nd May 2004 17:54
that looks like hard work for a simple task, why not just do


if leftkey() then turn object left 1,2
if rightkey() then turn object right 1,2
if upkey() then move object 1,1
if downkey() then move object 1,-1

as for the direction something is facing, try

object angle x
object angle y
object angle z

I am not sure if this is what you where wanting, hope it`s some help though.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 22nd May 2004 23:52
move object still doesnt move it in the direction its facing

DANGIT NEO, YOU CHANGED THE CODE AND NOW THE MATRIX WONT TEXTURE RIGHT.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 23rd May 2004 02:28
Does it by any chance move it backwards?

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 23rd May 2004 05:25
nope... i fixed it.. apparently easy rotate messes with some things..

DANGIT NEO, YOU CHANGED THE CODE AND NOW THE MATRIX WONT TEXTURE RIGHT.
Ricky
20
Years of Service
User Offline
Joined: 24th May 2004
Location: India
Posted: 24th May 2004 19:11
My exported animation file from 3ds max does not work . Please help me

Login to post a reply

Server time is: 2024-11-26 18:45:02
Your offset time is: 2024-11-26 18:45:02