Skip to content

Entities appear to get stuck in walls/floors when sliding #316

@MrAwesomeLuigi

Description

@MrAwesomeLuigi

Module

move

Feature

on_collision/slide

Version

2.2.2

Expected Behavior

The entity should move cleanly when applying a velocity and sliding

Actual Behavior

The entity clips into walls/floors when colliding with both blocks and entities. Any further velocity applied clips it further into the wall.

Possible Fix

From my testing it appears to be clipping into the floors/walls by -0.0000001 blocks, which appears to be messing with the collision checks, preventing it from sliding correctly. It appears to be directional in the negative direction for walls, although I haven't confirmed that 100%.

Steps to Reproduce

Runs Once

execute at @s run rotate @s ~ 0
scoreboard players set @s bs.vel.x 0
scoreboard players set @s bs.vel.y 0
scoreboard players set @s bs.vel.y 133000

Loop

execute at @s run function #bs.move:apply_local_vel {scale:0.00002,with:{on_collision:"#bs.move:on_collision/slide"}}

I have tested with different velocity scores and with canonical velocity instead of local, they all share this issue.

Metadata

Metadata

Assignees

Labels

🐛 BugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions