Frictional Games Forum (read-only)

Full Version: [Help] Moving objects and the like
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If someone can shine some light.. I would really appreciate it.

void AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

What is the difference between these?

I'd also like to know if it's possible to move static objects? (contradiction I know). Kinda like how you can animate a secret wall, is it possible to move areas / primitive planes etc?

A good example is the Justine DLC.. at the end with the walls that move? I'd like to know how to do that but with planes / areas.

Thanks
Only entities can be moved or animated.
You can create entities from static objects.
The wall at the end of Justine is an entity.
(06-10-2011, 11:56 AM)Tanshaydar Wrote: [ -> ]Only entities can be moved or animated.
You can create entities from static objects.
The wall at the end of Justine is an entity.

A good start thanks Smile So how do I convert a static object into an entity? I haven't played with the model editor if it's there?

Can a plane be converted? As in the primitives used to create the ceiling..the floors...water etc.
A plane is not an object, so basically you have to make it into an object somehow.
There are static objects for water, in decal folder for static objects.

And yes, you have to use Model Editor for it. Use Import Mesh, import the dae file of the desired object and start to work on it. You can open other entities to see exact settings.
Ok thanks, will have to give this a go.
A black box is an entity so I take it that can be moved. Can lights be moved?

And with moving objects.. is it only just a force? so like.. if you wanted to move a box.. can you only apply a force to it like a push? or can you control it.. can you make it move slowly across a room like it was hovering or something?

I don't need this for my new custom story but its an example of what I do need Tongue

Thanks.
Not all entities can be moved. They need some special settings. Like not being StaticObject entity. Looking into main game files might be helpful.
I don't think a light can be moved. Slowly moving other things is done through timers. A small force applied over a longer period of time. Hope you remember your phyiscs classes? Smile As for the plane being an object, 3d modeling is required.. I'm quite sure that you can't make a plane an entity. Good luck.