galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/engine
MIT License
4.18k stars 300 forks source link

DynamicCollider - kinematic dynamic collider #187

Closed GuoLei1990 closed 2 years ago

GuoLei1990 commented 3 years ago

Design: @GuoLei1990 , @yangfengzzz

PR: @yangfengzzz

PR reviewers: @cptbtptpbcptdtptp , @zhuxudong , @GuoLei1990

yangfengzzz commented 3 years ago

In PhysX, Rigidbody related to NpRigidDynamic inherit from PxActor, which will be added into the object of PxScene. NpRigidDynamic is the subclass of NpRigidBodyTemplate\<PxRigidDynamic>, which contains member function related to mass, linearDamping, force, torque, linear velocity, angular velocity and so on.

yangfengzzz commented 3 years ago

Rigidbody is the prerequisite dependence of Joint, Articulation components. And there is also an optional component called ConstantForce in Unity depends on it.

yangfengzzz commented 3 years ago

377 CharacterController from PhysX