Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
player ship movement

Jorgensen
Guest
Quote
2023-09-28 18:13:01

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


chrisz
Registered User
Quote
2023-09-29 16:35:39

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.


chrisz
Registered User
Quote
2023-09-29 16:46:45

Something like that?

https://www.dropbox.com/t/KfAlA3...


chrisz
Registered User
Quote
2023-09-29 18:18:59

I made a german sub and a ocean plane to play around with that idea.

🔎︎


🔎︎


🔎︎



chrisz
Registered User
Quote
2023-09-30 10:24:05

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)


chrisz
Registered User
Quote
2023-09-30 13:03:09

🔎︎


https://www.youtube.com/watch?v=...


chrisz
Registered User
Quote
2023-09-30 15:02:20

I made fast a low poly freighter.

🔎︎



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact