Kolopsel Posted August 17, 2017 Share Posted August 17, 2017 (edited) Hello, ive got a little problem, i want to create a vehicle at a location with a specific direction, but ScriptHookVDotNet only takes Vector3 for the position and i want it to take a Quaternions. Is there some kind of bypass for this ? Edited August 18, 2017 by Kolopsel Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2017 Share Posted August 17, 2017 (edited) Have you had much experience with Quaternions? I ask that because Quaternions are for rotations and you're trying to use them for positions. So what you would do, is set the Vehicle.Position with a Vector3 and then set the Vehicle.Quaternion with your rotation Quaternion. Edited August 17, 2017 by Guest Link to comment Share on other sites More sharing options...
Kolopsel Posted August 18, 2017 Author Share Posted August 18, 2017 Have you had much experience with Quaternions? I ask that because Quaternions are for rotations and you're trying to use them for positions. So what you would do, is set the Vehicle.Position with a Vector3 and then set the Vehicle.Quaternion with your rotation Quaternion. Thank you, i didnt know you could set a Quaternion for a already spawned vehicle. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now