"Set Phyics : Prevent Rotations" crashes CocoonJS

0 favourites
  • 3 posts
  • Link to .capx file (required!):

    https://dl.dropboxusercontent.com/s/2e50axs10iflc0c/PreventRotations.capx?token_hash=AAGjpq9kGp7szmhPN0RpPv6bfgy-Gp3bz3-fRvc907y6Hg&dl=1

    Steps to reproduce:

    1. Give an object Physics behavior.

    2. Click Object and put Prevent Rotations to "No".

    3. Create a condition, for example, "On start of Layout"

    4. Create Action : Turn ON "Prevent Rotations" via: Object> Physics> Prevent Rotations

    Steps to reproduce 2(Alternative method):

    1. Give an object Physics behavior.

    2. Click Object and put Prevent Rotations to "Yes".

    3. Create a condition, for example, "On start of Layout"

    4. Create Action : Turn OFF "Prevent Rotations" via: Object> Physics> Prevent Rotations

    Steps to reproduce 3(Alternative method):

    1. Give an object Physics behavior.

    2. Click Object and put Prevent Rotations to "No".

    3. Create a condition "On Toched Object"

    4. Create Action : Turn ON "Prevent Rotations" via: Object> Physics> Prevent Rotations

    Observed result:

    CocoonJS locks up/crashes when trying to switch rotation states.

    Accelarated CocoonJS Physics - Game locks up with massive screen flicker or just locks up.

    Web-based CocoonJS Physics - Black screen.

    Error console gives a lengthy error message, including most notably:

    "Object[object Object] has no method 'SetFixedRotation'

    at Acts.SetPreventRotate(Physics_Behavior.js:14124:13)"

    Expected result:

    The game runs.

    Browsers affected:

    CocoonJS 1.4

    Operating system & service pack:

    CocoonJS 1.4 and Android 4.1.2

    Construct 2 version:

    R139

    Will report this to Ludei as well.

  • Got a response from Ludei.

    "Our Box2D implementation doesn't have SetFixedRotation() for now."

    Crossing fingers it gets added in next update.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing, this one depends on Ludei adding support. In the mean time switch to the standard physics engine.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)