Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[A7.3] c_move(); moving in wrong direction? #258726
04/01/09 19:13
04/01/09 19:13
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline OP
Expert
xXxGuitar511  Offline OP
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I had a really strange problem with c_move(). I'm working on a very large project, so it's hard to tell if it had something to do with another script. But...

When I use:
c_move(my, vector(10*time_step,0,0), nullvector, IGNORE_PASSABLE | GLIDE);

The enity move's as it's supposed to, unless I'm facing the other way. Up to a 90 degree difference in angle, it moves straight as it's supposed to. but past that, it moves in the opposite direction of the camera. I thought it might be due to another function somewhere, but nothing linked moves it.

It always moves at the defined speed as well (10 above), just in the wrong direction sometimes. This is somehow probably my fault, but did anyone else have this problem?


xXxGuitar511
- Programmer
Re: [A7.3] c_move(); moving in wrong direction? [Re: xXxGuitar511] #259262
04/05/09 06:10
04/05/09 06:10
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Probably your angle is not 0 to 360 degrees? Anyway finding some problem in your code is sort of difficult without seeing it. laugh


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1