Re: I am trying to create fps controller But "Entity.Physics.Move( Vector3.Right) " going to wrong way

#2
You will want to get the forward direction and rotate it accordingly yourself.
Alternatively you could use a simple Vec3(1,0,0) and transform this by the entity world transform.
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

Re: I am trying to create fps controller But "Entity.Physics.Move( Vector3.Right) " going to wrong way

#4
To clarify I do not mean to rotate your entity :).

Unfortunately I am not so versed in C#, but usually you would do something like:
Player.GetTransform().TransformPoint(Vec3(1,0,0))

This would essentially move that point 1 unit to the right side of the entity (in whatever direction the entity is facing).
Then you can simply use vector subtraction to get the direction:

TransformedPoint - Origin = vector in the direction of TransformedPoint.

-

In C# you should be able to get the World Transform Matrix - WorldTM - for any entity and then call TransformPoint() on that matrix with a vector as shown above.

Hope this helps
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

Who is online

Users browsing this forum: No registered users and 2 guests