Optimise PhysX geometry vertex format
tomezpl opened this issue · comments
In LEngine/Physics/PhysicsRigidbody.cpp - PhysicsRigidbody::InitCollider:
The points passed into PxConvexMeshDesc
are taken directly from a Lepus3D::Mesh
, which consists of an array of Lepus3D::Vertex
objects. Each Vertex
has fields for UV mapping and normals, which are not needed for physics simulation; we only need x, y, z.
Create a converter that only extracts xyz and change desc.points.stride
to size of those 3 coordinates.
Updated in 302b1f0