IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Vehicle Rotation Problem

 
Insight2k  
Posted: Friday, Jul 27 2012, 17:07
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



Hello everyone,

i recently started to script a bit for gta iv and i came across a problem i cannot solve.

for your understanding:
the current vehicle my char is driving shall have the possibility to "rotate" in any direction and stay in this position.

for example, the car shall drive on two wheels (left or right doesnt matter). when i am using the following code it sticks to this position, but will drift with force to the left/right side and i cannot stop that. am i missing something here?

CODE


private Quaternion qRotation= new Quaternion(0.0F, 0.5F, 0.0F,1.0F);

if ( .. )
           {
               Player.Character.CurrentVehicle.RotationQuaternion = qRotation;
           }
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG