playMaker

Author Topic: are Raycasts in fixed update by default?  (Read 113 times)

Fleech

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
are Raycasts in fixed update by default?
« on: March 18, 2017, 02:36:10 AM »
my game uses a lot of physical interaction and i'm trying to cast a ray onto a moving surface. it seems to be lagging behind its cast position. does anyone know if raycast is in fixed update by default? i've tried several interpolation settings on both the casting object and its surfaces and the result is almost always the same.

Carmichael

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Re: are Raycasts in fixed update by default?
« Reply #1 on: March 20, 2017, 10:42:08 AM »
you shouldn't be having this issue, you might be doing this all wrong. ensure that you set up a direction for your raycast to fire, e.g x = 1 or y =1. place the raycast object where you would like it to fire from and set up its direction. if you plan on shooting on specific moving surfaces set up it's layer mask down below to avoid continuous true hit events.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11713
    • View Profile
Re: are Raycasts in fixed update by default?
« Reply #2 on: March 20, 2017, 11:21:28 PM »
Hi,

 also, please don't double post :) instead bump your thread or pm me if you did not get any reply.

 Bye,

 Jean