Author Topic: Raycast Question Object Position Problem  (Read 2040 times)

Voxel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Raycast Question Object Position Problem
« on: August 01, 2013, 03:57:33 PM »
Hi,

I am using raycasting to detect targets, however when they travel at speed the raycasts seem to lag behind and start miss.

I have the rigidbody in the root separate from the renderer, and I am using AntiJitter on the Renderer, and TNAutoSync to sync the transform position and rotation. The collider is attached to the same object as the rigidbody.

I've played around with the SyncRigidbody script, and also the rigidbody setting in TNAutosync, thinking it's a rigidbody or collider position problem.

Am I on the right track? I am open to any suggestions!


Voxel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Re: Raycast Question Object Position Problem
« Reply #1 on: August 01, 2013, 04:04:38 PM »
Never mind fixed it! My collider was a child of the object with AntiJitter so it was always looking in the wrong place.