What Rectangle and Circle Collision Shapes Really Mean (A Certain Ratio)

lycettebroslycettebros Member, PRO Posts: 1,598
Based on some experiments of ours at lycettebros we can share the actual meaning of these terms.
Rectangle collision shapes are square or rectangle based on the outer limits of the X width and Y width of an actor. This is logical and no real surprise.
The unforseen change is with Circle based collision shapes. A circle based collision shape is exactly a circle (no oblongs) AND its diameter is determined by the SHORTEST side of the actor. So in rectangular shaped actors look at the shortest length (height or width) and make that the diameter of a perfect circle and place that circle in the exact center of your actors bounding box (that is the collision boundary).

Comments

Sign In or Register to comment.