Move Object Bug
#1

Hello, how I can solve this problem ?

https://www.youtube.com/watch?v=edp9...ature=*********

Код:
new gate_LV_POLIS_K2, g7 = 0;

public OnGameModeInit()
{
	gate_LV_POLIS_K2 = CreateDynamicObject(968, 2238.216796, 2450.247070, 10.698654, 0.000000, -90.299934, -89.700180, 0, 0, -1, 300.000, 300.000);
	return 1;
}


// Open procces
MoveDynamicObject(gate_LV_POLIS_K2, 2238.216796, 2450.247070, 10.698654, 3.0, 0.000000, -0.999919, -89.700180);
g7 = 1;
SetTimer("LV_POLIS2", 3005, false);

// Off procces
g7 = 0;
MoveDynamicObject(gate_LV_POLIS_K2, 2238.216796, 2450.247070, 10.698654, 3.0, 0.000000, -90.299934, -89.700180);
Reply
#2

This function can be used to make objects rotate smoothly. In order to achieve this however, the object must also be moved is what wiki says.
This means that you need to move the object as well, not just rotate it, otherwise you won't even notice that it was rotating, it will be just too quick. I had the same problem, just add a little to the y coordinate and decrease the speed like I did and it will rotate smoothly.
Reply
#3

I see a ramp going up and down, so whats the problem?
Reply
#4

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
This function can be used to make objects rotate smoothly. In order to achieve this however, the object must also be moved is what wiki says.
This means that you need to move the object as well, not just rotate it, otherwise you won't even notice that it was rotating, it will be just too quick. I had the same problem, just add a little to the y coordinate and decrease the speed like I did and it will rotate smoothly.
My English is not too good. Unfortunately I don't understand. Can you demonstrate with a simple example ?
Reply
#5

When you open:
Код:
MoveDynamicObject(gate_LV_POLIS_K2, 2238.216796, 2450.247070, 10.698654 + 0.01, 0.5, 0.000000, -0.999919, -89.700180);
This might work. As you can see I added 0.01 to the y coordinate, you can also remove 0.01, you can remove or add as much you wish, the main thing here is to make it move a little so it will rotate smoothly, so I added a little to the y coordinate so it means it moves the object up a little, but you most likely won't notice it. Try it. If it's too slow or too fast then change the speed. In this case where you add or remove 0.01 the speed could be even 0.001 to make it good. Even 0.01 could be too fast. Just play around with the speed and y coordinate.
Reply
#6

Thanks for your help. But still I can't find appropriate positions
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)