Howdy,
i have cars passing by randomly on the road
they are created, given two animators (one to drive straight and one to delete after they drive a certain time)
the mesh is preloaded, so when a new car creates with addAnimatedMeshSceneNode, the mesh it gets is already loaded from hdd. But the problem is, that when each car gets created, a small, but noticable hiccup appears in their movement.
Any way how to solve this?
addAnimatedMeshSceneNode hiccups [solved]
addAnimatedMeshSceneNode hiccups [solved]
Last edited by Holiday on Thu Aug 20, 2009 10:13 pm, edited 1 time in total.
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Have you tried the clone function? Say your node you want to clone is called car1, and the one you want the clone to be stored in is car2:
Code: Select all
IAnimatedMeshSceneNode* car2 = car1->clone()
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Even though you fixed the problem, I'd like to fix the code I gave you:
I forgot that it returned just an ISceneNode.
Code: Select all
IAnimatedMeshSceneNode* car2 = static_cast<IAnimatedMeshSceneNode*>(car1->clone());