Forums

OverviewV-Play 2 Support (Qt 5)Is it possible to make a BoxCollider rounded? › Reply To: Is it possible to make a BoxCollider rounded?

OverviewV-Play 2 Support (Qt 5)Is it possible to make a BoxCollider rounded? › Reply To: Is it possible to make a BoxCollider rounded?
#10787

G√ľnther
V-Play Team

Hi CiceroDev,
thanks for your praise, we love that! ūüėČ

As we use the Box2D physics engine, the¬†colliders available in V-Play are based on the Box2D colliders. Unfortunately, there’s no easy way to get rounded¬†corners, because¬†a radius¬†setting similar to the Qt Rectangle is¬†not supported for the BoxCollider currently.

You can try using a CircleCollider or PolygonCollider to get the shape you want. The CircleCollider uses a full circle, so it might not be the best if your base shape is more like a rectangle. With the PolygonCollider you can create your own custom shapes, for example an octagon shape, so the edges are cut off.
Best,
GT

  • This reply was modified 2 years, 10 months ago by  GT.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support