New addon (remove older version), adding in raycast


A new addon, replaces the old one, uses skymen's nice C3IDE2 to build the addon.

Remove the old addon.

Added a raycast action, right now returns a JSON object with all the details of the raycastResult with this structure.

raycastResult JSON
             {
                 hasHit: <boolean>,
                 hitFaceIndex: <number>,
                 hitPointWorld: [x,y,z],
                 hitNormalWorld: [x,y,z],
                 distance: <number>,
                 hitUID: string,
                 shouldStop: <boolean>
              }

Eventually will probably add to separate expressions, but for simplicity of implementation this is how it is now, see the raycastExample.c3p for an implementation.

Also added SSAO effect shader for a better 3D look.

Files

mikal_cannon_3d_physics-1.0.0.0.c3addon 81 kB
Sep 15, 2023
ssao-1-5-1.c3addon 6.3 kB
Sep 15, 2023
raycastExample.c3p 1,013 kB
Sep 15, 2023

Get Construct 3 3D Physics

Buy Now$10.00 USD or more

Leave a comment

Log in with itch.io to leave a comment.