GameObject Structure needs to be set the photon view in a child...
Options
Hi you,
i got a big problem and need support. I programmed and build a very special car with car physics.
Meshes and the Visual part is seperated from physics and physics are also seperated to the body-part.
That means for a short, easy graphical overview:
- Car
- - Car Body (with Rigidbody, Controller,Lights,Checkpointscript,....)
- -Car Physics
- -Car Suspension
- -Car Wheels
and some joints, ....
My car is working very well, physics are phantastic - and i am ready to build the first network version with photon.
And now i run in troubles.
The beginning of problem is that photon needs a photon-view in the root of this prefab.
For sure.... of course i will add a photon-view in the root (\Car).
Cars are spawning of course- but nothing appears. why?
Because the root-Gameobject is not moving.....its the only a holder for the child-gameobjects.
So the photonview is syncing nothing......
Of course i read the manual and checked out that the root of a prefab is needing a photonview - but in my case the "car body too".
So ive tried to add a empty photonview to the root (\Car) and add a second one (with observed movementsmoothing) to the car-body.
That works.... but not really perfect - because the physics, the wheels and the suspension are not sync now.
Crap - and completly clear.
But what should i do now?
Any Ideas?
mike
i got a big problem and need support. I programmed and build a very special car with car physics.
Meshes and the Visual part is seperated from physics and physics are also seperated to the body-part.
That means for a short, easy graphical overview:
- Car
- - Car Body (with Rigidbody, Controller,Lights,Checkpointscript,....)
- -Car Physics
- -Car Suspension
- -Car Wheels
and some joints, ....
My car is working very well, physics are phantastic - and i am ready to build the first network version with photon.
And now i run in troubles.
The beginning of problem is that photon needs a photon-view in the root of this prefab.
For sure.... of course i will add a photon-view in the root (\Car).
Cars are spawning of course- but nothing appears. why?
Because the root-Gameobject is not moving.....its the only a holder for the child-gameobjects.
So the photonview is syncing nothing......
Of course i read the manual and checked out that the root of a prefab is needing a photonview - but in my case the "car body too".
So ive tried to add a empty photonview to the root (\Car) and add a second one (with observed movementsmoothing) to the car-body.
That works.... but not really perfect - because the physics, the wheels and the suspension are not sync now.
Crap - and completly clear.
But what should i do now?
Any Ideas?
mike
0
Comments
-
Hey, i know this post is very old but by any chance, did you find a solution for this yet?0