Rigid body movement of PhysX

Source: Internet
Author: User

[Linear velocity and angular velocity]

The speed of the pxrigidbody is composed of linear velocity and angular velocity, which can be set by Setlinearvelocity and Setangularvelocity respectively. It is important to note that the angular velocity of a rigid body is always based on the coordinate system with the centroid of the rigid body as the origin.

Assuming that the starting and ending points of a rigid body are pose1 and pose2, and the motion time is T, the velocity is calculated as follows:

Linear speed LV = (POSE2.P-POSE1.P)/t

Transform four-tuple d = pose2.q * pose1.q.getconjugate-axis pair (angle, axis)

Angular velocity vector av = axis * angle/t

Angular velocity is the meaning of a rigid body orbiting axis axis, which rotates at angle/t speed.

Rigid body movement of PhysX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.