Hey Guys,
So I have been wondering what the best way is to go about with Physics-Transform synchronization, my issue is
this, if an Actor has a physics component, should the transform be allowed to do anything? The first way I had it hooked up was that if there was a physics component and I tried to move using the transform, there would be a slight gitter, the physics would then resend it's transform and return the transform component to match the physics, but what if I have a physics component, and I wish to override the position of the actor as defined in the actor file, the physics will simply reject the transformation.
I then set it up so that the transform would update the physics as well, not thinking about the cyclic issue of the transform updating physics, then the physics updating the transform.
Should I be able to move the actor using transform if a physics is present? If so what should be the best approach (rules set in place), and if not, should I be using a specific event that is only sent at actor creation to position the physics component?
So I have been wondering what the best way is to go about with Physics-Transform synchronization, my issue is
this, if an Actor has a physics component, should the transform be allowed to do anything? The first way I had it hooked up was that if there was a physics component and I tried to move using the transform, there would be a slight gitter, the physics would then resend it's transform and return the transform component to match the physics, but what if I have a physics component, and I wish to override the position of the actor as defined in the actor file, the physics will simply reject the transformation.
I then set it up so that the transform would update the physics as well, not thinking about the cyclic issue of the transform updating physics, then the physics updating the transform.
Should I be able to move the actor using transform if a physics is present? If so what should be the best approach (rules set in place), and if not, should I be using a specific event that is only sent at actor creation to position the physics component?
PC - Custom Built
CPU: 3rd Gen. Intel i7 3770 3.4Ghz
GPU: ATI Radeon HD 7959 3GB
RAM: 16GB
Laptop - Alienware M17x
CPU: 3rd Gen. Intel i7 - Ivy Bridge
GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
RAM: 8GB Dual Channel DDR3 @ 1600mhz
CPU: 3rd Gen. Intel i7 3770 3.4Ghz
GPU: ATI Radeon HD 7959 3GB
RAM: 16GB
Laptop - Alienware M17x
CPU: 3rd Gen. Intel i7 - Ivy Bridge
GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
RAM: 8GB Dual Channel DDR3 @ 1600mhz