Replicating child object transforms
Ogmiossa
✭
Hey All,
Quick one, I have child objects of a bolt entity that rotate transform. However this isn't being replicated across the networks.
I cant have boltEntities as children of other boltEntities, also attaching a callback as in
public class Watch : Bolt.EntityBehaviour(IchildState)
{
public override void Attached()
{
state.SetTransforms(state.childTransform, transform);
}
}
Doesn't seem to work.
Any tips?
Quick one, I have child objects of a bolt entity that rotate transform. However this isn't being replicated across the networks.
I cant have boltEntities as children of other boltEntities, also attaching a callback as in
public class Watch : Bolt.EntityBehaviour(IchildState)
{
public override void Attached()
{
state.SetTransforms(state.childTransform, transform);
}
}
Doesn't seem to work.
Any tips?
0
Best Answer
-
state.SetTransforms(state.childTransform, transform);
You are referencing the root transform, not the child transform5
Answers
-
state.SetTransforms(state.childTransform, transform);
You are referencing the root transform, not the child transform5