Starter to physics

Posted By: KyiasShadow

Starter to physics - 07/12/04 20:51

ok i dont have a clue abotu the physics engine, i ahve the commercial version never used it before because im new. it says i can only use 1 object in the physics engine, dont no what this is meant to mean, i woudl like to add gravity to some of my objects in my game, like the player. i am not using template scripts as i like to be origional. this is a dumb question but it had to be asked,

Thanks
Posted By: Garok

Re: Starter to physics - 07/13/04 01:35

Okay you can only have physics affect one object at a time. Meaning you cannot have gravity affect more than one entity, you could use the old a5 methods though and just have certain entities use the physics engine. Do you need help adding the gravity part too?
Posted By: KyiasShadow

Re: Starter to physics - 07/18/04 19:33

Ok what do you mean onyl having one at a time. lik eif i create a world only one object in that world will be able to have physics effects?
Posted By: BHoltzman

Re: Starter to physics - 07/19/04 09:16

You almost have the idea. Here's an example that might help make the idea concrete for you. You have a universe with three balls in it we'll call them ball a, ball b and ball c. Then if ball a is an active physics entity ball b and ball c cannot be active physics entities because ball a is currently an active physics entity. But sometime in your program you can turn ball a into a non physics entity then ball b and ball c can be physics entities. But only one at a time.

If you make ball b an active physics entity then ball a and ball c cannot be active physics entities until ball b is no longer an active physics entity.

This same pattern is true for ball c being an active physics entity.

So this means that one entity at a time can be an active physics entity, it doesn't matter how many physics entities you have in your program, you can only make one active at any one time.

Get it?

Also, gravity will only effect one object at a time. It doesn't matter how many objects are in your level. Only one object at a time will have gravity effect it.
Posted By: KyiasShadow

Re: Starter to physics - 07/19/04 23:42

OK That REALLY sucks, lol

I get it now. so i could have 100 objects that have physics to them but only one can be using teh engine at any given time.

Thanks for the help.
Posted By: BHoltzman

Re: Starter to physics - 07/20/04 03:21

Just use the Newton physics plugin. It pretty darn good. You'll be able to do all the physics you probably want or need.

And if you don't know about Newton Physics take a look at it from the downloads section. It's a free plugin.
© 2024 lite-C Forums