moving platform fix: double speed gain

This commit is contained in:
minjaesong
2026-02-09 02:25:52 +09:00
parent 72aae3cffd
commit 5394f17686
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ abstract class PhysContraption() : ActorWithBody() {
INGAME.actorNowPlaying?.let { candidates.add(it) }
for (actor in candidates) {
if (!actorsRiding.contains(actor.referenceID) && isActorOnTop(actor)) {
if (!actorsRiding.contains(actor.referenceID) && actor.platformsRiding.isEmpty() && isActorOnTop(actor)) {
mount(actor)
snapRiderToSurface(actor)
// Landing on the contraption kills all vertical velocity.

View File

@@ -18,7 +18,7 @@ import kotlin.math.sin
class ActorTestPlatform : ActorMovingPlatform(8) {
/** Movement pattern index (0-3). */
private val pattern: Int = (0..3).random()
private val pattern: Int = (0..1).random()
/** Speed in pixels per tick (2.0 to 4.0). */
private val speed: Double = 2.0 + Math.random() * 2.0