Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LastPick = LinePick(x, WallYPick, z, 0, 0, VelocityZ * 100, Width * 0.9)
- WallZ = PickedZ()
- If LastPick
- If Abs((Z + VelocityZ) - WallZ) < Width Then
- VelocityZ = 0
- Z = WallZ + Sgn(Z - WallZ) * Width
- Else
- WallZ = Null
- EndIf
- Else
- WallZ = Null
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement