Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LastPick = LinePick(x, WallYPick, z, 0, 0, VelocityZ * 100, Width * 0.9)
  2. WallZ = PickedZ()
  3. If LastPick
  4.     If Abs((Z + VelocityZ) - WallZ) < Width Then
  5.         VelocityZ = 0
  6.         Z = WallZ + Sgn(Z - WallZ) * Width
  7.     Else
  8.         WallZ = Null
  9.     EndIf
  10. Else
  11.     WallZ = Null
  12. EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement