How to make a curve collidable #1366
flaming-flamingo
started this conversation in
General
Replies: 1 comment
-
Hi, what is the approach you use now to make it collidable? There is no built-in curve collision detection, but you should be able to approximate the curve with a polygon and outsource the checks to the embedded box2d physics engine. Here's a sample that shows some of that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I am currently working on a game which requires an entity to be launched off a ramp, starting from a high point and descending until it reaches an upward slope. However, I have had to resort to the use of triangles and rectangles when using a QuadCurve would be more helpful, but my attemps at making the curve collidable are innefective. how can I make it so that it is collidable?
Beta Was this translation helpful? Give feedback.
All reactions