A Trajectory behavior for Construct 3, simulate 2D physics trajectory and projectile motion
maybe add c3p example ?
check the itch.io pagethere is example there also in github
piranha305.itch.io/trajectory-behavior-construct-3
excellent addon that I have used for several weapons in my latest game.
I get this error when exporting with advanced minify:
working/506442539/c3runtime.js:5918:38: ERROR - [JSC_UNDEFINED_VARIABLE] variable time is undeclared
5918| this.vx = (targetX - this.curX)/time;
^^^^
working/506442539/c3runtime.js:6111:37: ERROR - [JSC_UNDEFINED_VARIABLE] variable targetPosition is undeclared
6111| const launchAngle = Math.atan2(targetPosition.y, targetPosition.x);
^^^^^^^^^^^^^^
2 error(s), 0 warning(s)
Also sometimes the object falls off platforms with the jump-though behavior when reaching the target and I don't know why.
Sometimes it happens because the FPS fluctuates or because of the position of the platform.