Expressions for Physics[family]

Bugs will be moved here once resolved.

Post » Fri Jul 27, 2012 6:16 am

The expressions for Physics properties (such as Sprite.Physics.Density) will pick the values from the first object in the behaviours corresponding family.. rather than the object specified.

So say we have Sprite1 and Sprite2 in the same family, and give that family the Physics Behaviour...
using the expression sprite2.physics.density will return Sprite1's density instead.
Same for elasticity, friction, etc

Here's a cap:
https://dl.dropbox.com/u/53374990/FamilyBehaviourBug.capx

I haven't tested this with other types of behaviour.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Mon Jul 30, 2012 6:00 pm

Thanks, I think this should be fixed in the next build, let me know if it works when r100 is out.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests