User mods, screenshots & videos > Other

can we create, place or throw custom made objects that have physics in outerra ?

(1/10) > >>

fly77:
I was trying to make a throwable object by following the structure of objdef file of the crate. Created a package of a rock and moved it to the outerra program's packages directory 
C:\Program Files (x86)\Outerra\Anteworld\packages\outerra. However I don't know which keys to press to throw the physical object. So I tried if it can be brought to life by placing it in the editor, but all objects even if they have a mass parameter, when placed by the editor do not seem to move in any way in the game..they are just static. Is there any way to place/throw objects made by us that have physics in outerra, besides creating them as vehicles or planes or boats - as this would require to "enter" each object to bring it to life?

cameni:
Hm, this part isn't completed.

All objects (including vehicles) can be placed as static, it depends on the method used to instantiate them. Throwable objects have to be created as dynamic, but I think scenery editor doesn't recognize them as such and creates them as static ones. It should be using a hybrid mode, where they would be dynamic initially but then static in the final scenery, to avoid wasting cpu cycles on them. But we also need to add ability to wake them up on interaction.

The shortcuts create those few dynamic objects as dynamic ones directly. Currently you'd be able to test if your object works as dynamic probably only though alt+c console (or a script from vehicle) like this:

--- Code: ---var x = $query_interface("ot::js::dynamic_object.create", "outerra/crate/crate", #pos, #rot);
x.extra_impulse({x:0, y:0, z:0}, {y:10}, false);

--- End code ---

Can't test right now because my Vega GPU again corrupts the displays whenever I run OT ...
You may not be able to apply extra impulse until the object is ready (first time pkg loading).

fly77:
Hmm. I tried

Alt+C

$query_interface("ot::dynamic_object.create", "outerra/crate/crate", {x:0,y:0,z:0}, {x:0,y:0,z:0});

but got error: interfacace creator ot::dynamic_object.create not found

cameni:
I forgot js there: "ot::js::dynamic_object.create"

fly77:
Thanks a lot !  It works !

Navigation

[0] Message Index

[#] Next page

Go to full version