A few weeks ago, raycasting was added to Corona’s physics system. The core API is an easy-to-use function for casting a “sensor ray” into the physics world — and we didn’t stop with that. Soon after, reflection was added to the raycasting system. Today’s tutorial discusses both of these features and includes a downloadable demo project to assist with your own development.
Posts Tagged: physics
In this second edition of our new weekly Staff Conversations segment, Corona Labs Core Engineer, Albert Yale talks about ray casting and how it can be used to probe the properties of a world and how it can be used to make game AI smarter.
Today’s tutorial features two more physics methods. In specific, we’ll discuss “radial gravity” and how to visually predict the launch trajectory of an object. Better yet, both methods are available as downloadable projects so you can explore the full implementation at the code level. Read on to learn more!
This week’s tutorial steps you through some advanced tactics involving multi-element physics bodies. Mutli-element bodies possess some valuable traits that joint-assembled bodies don’t — but they also present some quirks and hurdles. Learn how to work around some of those in your physics-based apps!
As you already know, Corona includes the powerful Box2D physics engine to give your games the ultimate sense of depth by providing a high-quality, realistic physics simulation—all without you having to know much more than just the “common sense” aspects of physics. Generally, if you know that gravity makes things fall, and understand that heavier objects travel slower than lighter objects when an equal amount of force is applied, then your knowledge of physics is sufficient enough to make a great physics-based game using Corona. Piece of cake right? However, because there are several properties that affect how things behave—things we never really have to think about in the real world—sometimes your in-game physics don’t always behave exactly how you expect them to, or want