how to scale rigid bodies?? (newbie)

how to scale rigid bodies?? (newbie)

a24710的头像

im using a rigid body with a hkpSimpleMeshShape

i dont know how to tell the rigid body that it has to scale all the vertex data ive passed with the shape

the closest i can get is with SetTransform(const hkTransform &transform), but the hkTransform does not support scale, just translation and rotation

there is also hkQsTransform which supports scale, but dont know how to pass this kind of transformation to my rigid body

any ideas??





2 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
havokdaniel的头像

Hey a24710,

Have you tried using an hkpExtendedMeshShape instead and using the setScaling() method on that? Unfortunately hkpSimpleMeshShape doesn't have the same scaling functionality.

Thanks,
Daniel

登陆并发表评论。