- Home /
Question about Physics2D.Linecast
Hi,
im watching a 2D platformer project and we used that code
grounded = Physics2D.Linecast(transform.position, groundCheck.position, 1 << LayerMask.NameToLayer("Ground"));
i need to know what exacly that code mean especaly LayerMask.NameToLayer("Ground")
Comment
Answer by DoTA_KAMIKADzE · Jun 17, 2015 at 01:43 AM
There is a well described documentation that you should learn to use:
Your answer
Follow this Question
Related Questions
Question about Physics2D.Linecast 1 Answer
Conveyor, Magnetic, Gravitational, Wind or Slippery Effect..... 0 Answers
2d physics car controller 1 Answer
C# Water Rotation 0 Answers