Jump to left and right


#1

i want my player to jump left and right its jumping but when i applied linear velocity for Z movement that time i am giving speed 3 means it is perfectly jump to that position while increasing speed that time it is jump to left and not in that position

movement speed = 3
https://launch.playcanvas.com/759016

https://playcanvas.com/editor/scene/759016

wat can i do??


#2

I don’t understand your question. Can you provide more information about the problem? I played your game and it seemed fine. The jump left/right looked OK.


#3

for player movement i use linear velocity. problem on my game is that when i changing lanes with linear velocity that time it’s going out side of lane. how to solve this problem?
thank you!

https://launch.playcanvas.com/759016


#4

Anyone help me guys. i am struct , i want jump with rotation i set rotation with angular velocity it is jumping with rotation but not settle down as correctly any suggestions??
then sometimes while player changing lens that time player went out of the boundry…

project link
https://playcanvas.com/editor/scene/761603

launch
https://launch.playcanvas.com/761603

while hitting obstacles that time angular velocity undefined it is coming


#5

For something like this, I actually think you be better off not using the physics system for the jump movement/rotation and actually do it manually (change the position and rotation in code) as that allows finer control on how fast the jump should be and a lot easier to control the rotation based on the time you set to make the jump.


#6

Yeah, I’d agree. The results from running the physics simulation are often difficult to predict precisely!


#7

another one doubt guys, after hitting obstacles game over scene comes. here i use restart button, for clicking restart button reload gameScene (using changingScene concept ) but that time for clicking left-right button error comes in linear velocity. how i solve this??
thank you!!
check this one is my launch

https://launch.playcanvas.com/761603