You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does the friction property of Phaser.Physics.Arcade.Body works in conjunction with the .setDirectControl() method?
Here is a link to a good use case for platforms from the documentation page. If I set the friction property through .setFriction(1, 1) for each platform, I expect that the player being on the platform will move along with it. But it slips through. I've already implemented this mechanics with platforms on Phaser 3.55, calculating the velocity of the platform depending on the coordinates manually. It still works on the phaser 3.8, but I would like to use .setDirectControl() method, it would help remove a lot of unnecessary calculations.
Version
Description
Does the
friction
property ofPhaser.Physics.Arcade.Body
works in conjunction with the.setDirectControl()
method?Here is a link to a good use case for platforms from the documentation page. If I set the
friction
property through.setFriction(1, 1)
for each platform, I expect that the player being on the platform will move along with it. But it slips through. I've already implemented this mechanics with platforms on Phaser3.55
, calculating the velocity of the platform depending on the coordinates manually. It still works on the phaser3.8
, but I would like to use.setDirectControl()
method, it would help remove a lot of unnecessary calculations.Example Test Code
Examples are available from the documentation page
PlatformsExample
additionally set
The text was updated successfully, but these errors were encountered: