Info

Statistics

  • Download count327 total downloads
  • Latest download count 266 downloads of latest version
  • Average download count1 downloads per day average

Owners

Description

A Trajectory behavior for Construct 3, simulate 2D physics trajectory and projectile motion

Discussion

  • 5 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • 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.

  • maybe add c3p example ?