Jump to content


Photo

Spawned model not rotating with turret


  • Please log in to reply
No replies to this topic

#1 Madin

Madin

    title available

  • Hosted
  • 686 posts

Posted 01 July 2014 - 07:58 AM

Has part of an experiment I have a tank which can spawn a gun (has a separate game object) using 'SpawnBehavior' module and a 'CombinedInfoModule' so it can dock to a bone (the bone information is correct).

My issue is that because the gun is attached to a bone on the tanks turret, the actual gun never turns when the tanks turret turns. It moves with the tank, but it is only in the correct position on the turret if the turret is facing forward.

The spawned gun has a 'SlavedUpdate' that has settings that mean that it cannot move about, yet I assumed that because it was supposed to be attached to a bone that was part of the tanks turret hierarchy, it would rotate along with the turret.

Is this normal behaviour for attached spawned models?

Is there some other way that I can get this to work?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users