"Set Phyics : Prevent Rotations" crashes CocoonJS

Bugs will be moved here once resolved.

Post » Sat Jul 27, 2013 1:30 pm

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.Xionor2013-07-27 20:16:35
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Mon Jul 29, 2013 1:08 pm

Got a response from Ludei.

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

Crossing fingers it gets added in next update.
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Mon Aug 05, 2013 4:43 pm

Closing, this one depends on Ludei adding support. In the mean time switch to the standard physics engine.
Scirra Founder
B
402
S
238
G
89
Posts: 24,637
Reputation: 196,071


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests