Back to home

Wall Detection Tool. Update 25th May 2019

91AT2
click to copy
This code is over 6 months old.
Codes expire after 6 months and will no longer function.
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.

Thumbnail for Wall Detection Tool. Update 25th May 2019

Category:
Training / Drills / Tools

Author:
XxHARAMBExX

Rating:
15

Version:
1.0.1

Posted:
about 1 year ago

Last updated:
about 1 year ago

Tags:
wall detection detection tool wall wall climb wall ride copy copy paste

Share this workshop!

Options


Wall + Normal Detection - Code: 91AT2


Stats/Info for Wall + Normal detector


  • Player Variable Q (at index 1) returns 1 if on wall, 0 if not on wall
  • Player Variable Q (at index 2) will return normal of detected wall
  • Player Variable Q (at index 0) = detection range
  • Max response detection time 0.032-0.048 secs
  • Adjustable detection range (recommended range: 0.8 < Value < 1.2)
  • Precision of Normal Vector on Round objects: ~11.125°
  • Performance friendly (Only one RayCast per tick)
  • Only 2 rules to copy (+ initialization of Q at index 0)
  • few Variables used: Q#0; Q#1; Q#2

    You can copy paste this code in your private projects, but if you end up using it please give this post a like so other people see that this is a public code available for everyone. Also this particular code took long to come up with. It would be nice if you give some small credit if you make it public Thanks :)





    *Round Objects | Apply Impuls in derection of (Wall Normal + (Up0,5))**




    Walk by





    Wall Detection Only - Code: 0JGS7



    Stats/Info for Wall detector


  • Dont click into the big condition, it may crash your game. Dont click be happy.
  • Player Variable S returns 1 if on wall, 0 if not on wall
  • Player Variable R = detection range
  • Max response detection time 0.032secs - 0.048secs
  • Adjustable detection range (min 0.6m, max consistent 2,5m)
  • Performance friendly
  • Only 2 rules to copy
  • Very few Variables used (R + S)

    You can copy paste this code in your private projects, but if you end up using it please give this post a like so other people see that this is a public code available for everyone. Thanks :)



An Example | Not included in the code!




Have Fun

Changelog

about 1 year ago 1.0.1

Higher performance script for Wall normal detection.

91AT2
click to copy
about 1 year ago 1.0.1

Higher performance script for Wall normal detection.

0JGS7
click to copy
about 1 year ago 1.0.0

A Wall Detection Code

BMQ4C
click to copy