Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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