public override void Create(EntityManager entityManager, GameObjectConversionSystem conversionSystem) { if (AutoSetConnected) { PositionLocal = math.transform(math.inverse(worldFromA), math.transform(worldFromB, PositionInConnectedEntity)); } CreateJointEntity( JointData.CreateLimitedDistance( PositionLocal, PositionInConnectedEntity, new FloatRange(MinDistance, MaxDistance) ), entityManager, conversionSystem ); }