Home Game Development Fast transferring dynamic physique passes by collider of static our bodies – Cocos Creator

Fast transferring dynamic physique passes by collider of static our bodies – Cocos Creator

0
Fast transferring dynamic physique passes by collider of static our bodies – Cocos Creator

[ad_1]

Hello everybody, I’m making an attempt to construct a cell supporting recreation. There are a number of static our bodies (with Box2Dcollider) within the scene and one dynamic physique (With Box2Dcollider) which might be dragged by a mouse.
When dragging the dynamic physique by the mouse at regular velocity, it collides with different static our bodies which forestall its motion which is what I anticipate to occur. But, If I drag too quick it could possibly surpass the collider of the static physique as if no collision occurred. Is there any technique to forestall this?

Thank you prematurely.

There is not any technique to deal with any velocity
Just restrict your dynamic objects’ velocity or enhance the physics-frame-rate (change system settings – not really helpful) to catch the collision

As it’s the mouse motion, you may attempt to create a “mouse-joint” to see if the draggable objects velocity is proscribed

Can you share demo to test?
Also did you attempt enabling Bullet?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here