Gamestudio Links
Zorro Links
Newest Posts
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
Fun Arcade Car Physics (nfs style)
by rayp. 09/16/26 05:23
How to Choose a Free Cataract Surgery Centre in Delhi?
by lokkalyansamiti. 09/15/26 08:27
Blind Zorro Window
by Martin_HH. 09/13/26 13:20
Parent/child object
by 3run. 09/11/26 06:21
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Martin_HH, 1 invisible), 1,479 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
lokkalyansamiti, rahulbuilds, speedx, liop, Bauer097
19235 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,141
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,141
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