Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
lagging; object lagging with camera
Topic Started: Sep 22 2007, 09:00 PM (281 Views)
ashrat3000
Member Avatar
u3d raytracer
[ *  *  *  *  *  * ]
I made myself a gun model and changed it to *.u3d. It works in my game, but it lags behind the camera.

For example, if I turn the camera really quickly to the left, the gun wont snap instantly to the direction of the camera, it lags behind. I have no code telling it to lag, it should be instant.

Anyone know why thats happening?
그대를 사랑해


Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
I asume you use a code something like this:
Code:
 

x=camera.x;
y=camera.y;
z=camera.z+camera.height;
rotx=camera.rotx;
roty=camera.roty;
rotz=camera.rotz;

Make sure you have put it in the end step event of the gun object.
Offline Profile Quote Post Goto Top
 
ashrat3000
Member Avatar
u3d raytracer
[ *  *  *  *  *  * ]
Hey, that worked! Thanks.
그대를 사랑해


Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply