Jump to content

GotoPoint direction (wrong ?)


YouGroove
 Share

Recommended Posts

I use in the main loop of the game the function :

 

self.entity:GoToPoint(20,0,-15,2.5,1);

 

But the character always turns and runs backwards ?

Strange ? Is there a way to keep it be facing the direction he runs or walks ?

 

In the pic you can see i drawed the direction he runs and you can see it runs but he is not turned in the right direction ?

backwards.jpg

Stop toying and make games

Link to comment
Share on other sites

I tried :

Rotation 180 for rotation in Y on the "general" panel

Same rotation in "Physics" panel for "shape rotation"

even boths ?

The character always turns automatically ? strange ?

It must be something with orientation or origin ?

Stop toying and make games

Link to comment
Share on other sites

I think the character model is 180 degrees rotated, so it doesn't by default fit the Leadwerks axis system, where Z+ is forward, so you have to do manually those 180 turns, which eat a few CPU cycles though.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

I had a similar problem in le 2. My character faced the wrong way when using PointEntity. I loaded it into uu3d and rotated 180 in the y coord

That fixed it.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

  • 1 year later...

Is there seomthing in code we can do to fix this?

 

I've tried applying rotations before calling Entity::GoToPoint and it still moves the model facing backwards.

 

For some reason 3ds Max is having errors when I try to import my model, so I can't seem to just rotate it on my own.

Link to comment
Share on other sites

  • 2 months later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...