Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Is it possible to enable/disable physics simulation?

pgame
Registered User
Quote
2022-10-28 17:22:26

1) I want in the first scene to be only collision and in the second scene to be physics simulation.

2) Is it possible to load files/open application?
My games is divided in 2 parts, so I would like in the first part when you finish the game, to open the second application


Guest
Guest
Quote
2022-10-28 17:49:16

Did you try this function from the documentation?

ccbSwitchToCCBFile(filename)

Note: This function only works in the Windows .exe and Mac OS .app target.
If your game uses a lot of data like textures / sounds / scenes etc, you can dynamically load levels and scenes at runtime using this function. When invoked this will wipe the memory and load/start that new file. This makes it possible to split your game up easily into multiple files. Example:

ccbSwitchToCCBFile("otherfile.ccb");


pgame
Registered User
Quote
2022-10-28 22:17:58

You saved my game from cancellation


writer
Guest
Quote
2023-01-19 15:32:04

Hello! Still a valid question
because the simulation does not switch


just_in_case
Moderator
Quote
2023-01-21 07:26:32

I haven't tried the ccbSwitchFile() command and tested if the physics engine gets updated with new ccb files or not but if it's not working then It might not work as it is based on the CC player settings, just like the resolution of Coppercube games, but maybe in future releases of CC, you will be able to switch between the physics engines during runtime.


Create reply:


Posted by: (you are not logged in)


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