Jump to content
Search In
• More options...
Find results that contain...
Find results in...

# Rotating an Object/Ped Ingame?

## Recommended Posts

I am confused on how rotating an object ingame works, can someone give me an example of moving it around or rotating it , thanks i have a native (below)

Native for rotation -

`static void SET_ENTITY_ROTATION(Entity entity, float pitch, float roll, float yaw, Any p4, BOOL p5) { invoke<Void>(0x8524A8B0171D5E07, entity, pitch, roll, yaw, p4, p5); } // 0x8524A8B0171D5E07 0x0A345EFE`

Any help given, Thanks

#### Share this post

##### Share on other sites

ENTITY.SET_ENTITY_ROTATION(letsi, 0.0, 90.0,0.0, 0, true)

#### Share this post

##### Share on other sites

ENTITY.SET_ENTITY_ROTATION(letsi, 0.0, 90.0,0.0, 0, true)

What does this do? does it rotate it right, left, or move it around? thanks for this though

#### Share this post

##### Share on other sites

If you use those values for this picture, it would roll the plane right.

Positive for X/pitch pushes the nose down.

Positive for Y/roll pushes the right wing down and left wing up (rolls right).

Positive for Z/heading pushes the plane right.

I don't think these rules are universal, so it might not be correct for GTA V. This should give you a basic idea anyways.

#### Share this post

##### Share on other sites

ENTITY.SET_ENTITY_ROTATION(letsi, 0.0, 90.0,0.0, 0, true)

What does this do? does it rotate it right, left, or move it around? thanks for this though

example I get the player tilts in the direction I needed do not hesitate to change the values you should find its value you need for your object and as described above, you should understand that there is an axis 3D coordinate

ENTITY.SET_ENTITY_ROTATION(PLAYER.PLAYER_PED_ID(), 90.0, 90.0,90.0, 0, true)

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

• ### 1 User Currently Viewing 0 members, 0 Anonymous, 1 Guest

×

• #### Activity

• Leaderboard
×
• Create New...

## Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.