ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Is it possible to enable/disable physics simulation?
person icon
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

person icon
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");

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

You saved my game from cancellation

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

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

person icon
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:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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