lo-th / phy

Physics for three. Game engine
https://lo-th.github.io/phy/
MIT License
509 stars 42 forks source link

What is the ratio of scale of threejs to scale of physx? #9

Closed gaurishgarg closed 1 year ago

lo-th commented 1 year ago

is simple all physics engine is in meter so one three unit is one meter

gaurishgarg commented 1 year ago

How to freeze rotation in X and Z axis for a phy capsule to avoid it from falling? Also, how to rotate a capsule about Y axis? Also what is the meaning of getazimut in character code? Also, I have a capsule which I can control using wasd or arrow keys, how can I apply it to my own character loaded via glb loader, i.e. how to make my character move along with the capsule?

I attached my character to the capsule and made the capsule visibility false, but this also hides the character. how to solve it? Or how can I apply transparent material to that capsule?

lo-th commented 1 year ago

for rotation lock is angularFactor:[0,1,0]

make character with material:'hide' and attach to capsule

gaurishgarg commented 1 year ago

Thanks a lot