Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Floating on and underwater.

ori
Registered User
Quote
2018-12-16 04:59:55

Hi! how can i make the player/camera float on the water surface? and how to simulate floating/swimming underwater? when moving from ground to water surface. Been mucking about with variables and gravity but not have much success..


just_in_case
Moderator
Quote
2018-12-16 08:52:31

Sorrt currently coppercube doesn't support physics for buoyancy... But you can use the behavior to check altitude and by comparing it you can allow a player to dive or swim....hope that helps


xanimalkingx
Registered User
Quote
2018-12-16 11:12:35

ori wrote:
Hi! how can i make the player/camera float on the water surface? and how to simulate floating/swimming underwater? when moving from ground to water surface. Been mucking about with variables and gravity but not have much success..

The best you can do is set the Gravity property of the root scene node to a low value when under water and back to the normal value when above water. Otherwise, its not really possible in CopperCube unless you are prepared to make your own Physics extension using scripting,


ori
Registered User
Quote
2018-12-17 06:37:42

Unfortunately i can't seem to get any of the examples provided to work?


ori
Registered User
Quote
2018-12-18 09:41:05

Sorrt currently coppercube doesn't support physics for buoyancy... But you can use the behavior to check altitude and by comparing it you can allow a player to dive or swim....hope that helps


The best you can do is set the Gravity property of the root scene node to a low value when under water and back to the normal value when above water.


Step by step tutorials of both these methods would be very helpful. Thanks.


Zoo
Guest
Quote
2018-12-19 15:27:28

There is a simple method.

Create a plane just under the water that your player can walk on.

If you need him to go bellow the plane, then simply hide the plane and the character will fall through


ori
Registered User
Quote
2018-12-20 09:30:14

Funny! i tried this a while back now! along with many other simple and crazy ideas to simulate buoyancy on and under the water without scripting! but nothing really works particularly when trying to simulating a large bottomless ocean. Besides just a waist high patch of water.


Zoo
Guest
Quote
2018-12-20 19:34:04

Learn to script


blick_fang
Registered User
Quote
2018-12-27 17:40:49

Zoo wrote:
Learn to script



But what happened to making games with out coding?


bdashraful
Registered User
Quote
2018-12-30 12:07:48

This is the scripting section of forum. If you need to make game without coding make thread in help with coppercube seciton here https://www.ambiera.com/forum.ph...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (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