Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsRotate.AngularVelocity

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public float AngularVelocity(LowLevelPhysics2D.PhysicsRotate rotation, float deltaTime);

Parameters

Parameter Description
rotation The rotation used as a calculation to rotate to.
deltaTime The delta time over which the rotation would take place.

Returns

float The angular velocity required to rotate to the specified rotation.

Description

Calculate the angular velocity necessary to rotate the current rotation and the specified rotation over a give time.


Declaration

public static float AngularVelocity(LowLevelPhysics2D.PhysicsRotate rotationA, LowLevelPhysics2D.PhysicsRotate rotationB, float deltaTime);

Parameters

Parameter Description
rotationA The rotation to rotate from.
rotationB The rotation to rotate to.
deltaTime The delta time over which the rotation would take place.

Returns

float The angular velocity required to rotate between the specified rotations.

Description

Calculate the angular velocity necessary to rotate between two rotations over a give time.