Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi there i would need help with a ship simulator movement. I try to make this possible but it didn&039;t work Press 1 = 15% movement Press 2 = 30% movement Press 3 = 50% movement Press 4 = 75% movement Press 5 = 90% movement Press 0 = Stop |
||||
|
Hmm good question maybe if press key - move player node +1(direction)? But i think you want to move it permanent in one directen after giving force. Thats a task for the good programmer guys here in the forum. |
||||
|
Something like that? https://www.dropbox.com/t/KfAlA3... |
||||
|
I made a german sub and a ocean plane to play around with that idea. |
||||
|
I think you need something like this written in BB ;If KeyDown(203)=1 Then TurnEntity Ship\Pivot,0,+2,0 ;If KeyDown(205)=1 Then TurnEntity Ship\Pivot,0,-2,0 ;If KeyDown(200)=1 Then MoveEntity Ship\Pivot,0,0,+10 ;If KeyDown(208)=1 Then MoveEntity Ship\Pivot,0,0,-10 P1=FindChild(MyShip\Mesh,"CPivotA") P2=FindChild(MyShip\Mesh,"CPivotB") ;MoveEntity Ship\Pivot,0,0,-.1 Ship\Speed=0 ;End If R=EntityRoll(FindChild(RudderMesh,"steuer")) Ship\Turn=Ship\Turn+R*.02 If Ship\Turn<-90 Then Ship\Turn=-90 If Ship\Turn>+90 Then Ship\Turn=+90 Ship\Yaw=EntityYaw(Ship\Pivot) TurnEntity Ship\Pivot,0,Ship\Turn*.002,0 Ship\Turn=Ship\Turn*.99 MoveShip(Ship) |
||||
|
https://www.youtube.com/watch?v=... |
||||
|
I made fast a low poly freighter. |
|