playMaker

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

Fleech

  • Playmaker Newbie
  • *
  • Posts: 44
are Raycasts in fixed update by default?
« on: March 18, 2017, 05: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.

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: are Raycasts in fixed update by default?
« Reply #1 on: March 20, 2017, 01:42:08 PM »
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: 15500
  • Official Playmaker Support
Re: are Raycasts in fixed update by default?
« Reply #2 on: March 21, 2017, 02:21:28 AM »
Hi,

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

 Bye,

 Jean