APGEL Refurbishe, Renamed ::TEASER::

My old script, the All Purpose Game Engine Library, has been redone! It is now the All Purpose Programming Library, Edition 2, or APPLE 2 for short. It’s functions have been simplified and streamlined so theyre easier to use. As of now i have a demo for aerodynamics, constraints, and some other functions like mouseLook(). Other things it can do: it can automate bouyancy, spring forces, automate your owner, controller, and objects (obs) functions; it can simulate drag (now aerodynamically), explosions (physics, not visuals), automate mouselook, cursor movement and other mouse related functions, it can make a camera zoom based on an object’s distance from it, or zoom it to the hit position of a ray sensor. It can get the distances to all the objects in a scene from a given object, it can get the closest object, it can get the distance to the closest object, it can get the Kinetic energy of an object, the potential energy of an object, simulate simple aerodynamics, automate vehicle physics (kind of), automate shadows, and more. Here is the download.
Now APPLE is compatible with exe/app exporting! Just make sure to put it in the directory with your exe. Unfortunately not all the functions work and so had to be removed. Get it here.

To use it, you have to put in your blender directory. Ask if you have problems!

Here is an example of aerodynamics
Here is an example of the constraints (space to add ragdoll [note: only first ragdoll will work; if you add more they constrain themselves to the original parts, not the newly created], lmb to grab object, rmb to remove constraint)
Here is a new FPS template using APPLE2. Includes mouseLook(), vehiclePhysics(), hingeConstraint(), removeConstraint(), rayImpulse(), simpleShadow() and more

this sounds cool, thanks :slight_smile:

Neat! This script will make my life a whole lot easier. Keep up the great work.

Thanks = )

im not impressed til I see some serious drag for incompressible inviscous fluids, I want to see some streamlines too. Simple Bernoulli stuff. Just kidding… It would be so out of the park to write up the code for finite element analysis and ram it into the blender GE but man it would be fun to see it. With most of the open GL stuff present and some texture creation script… oh to dream like an engineer

Lot of quick neat things you have there to make life easier on us poor saps I hate matrix math so I always love things that do it for me.

New stuff added today: automated rigid body constrains–the ones from the old physics demos that no one ever uses anymore. There are 4 of those (fixed,hinge,ragdoll,and p2p). Made a function to automate the car physics. Fixed some bugs, thinking about adding a function to do the dynamic shadows.

More new stuff! Examples for aerodynamics and constraints. Check on first post

Hello
should work with python 2.4?
I get some error messages?!
Bye

I don’t know how to use this, but I will throw it into my scripts and see if I can figure it out

Thanks for the w00tness of it all

the more I hear about it the more I like it :smiley:

i will check on another computer to see what the messages are, but if you could tell me what the messages are?

Very cool!

I noticed a bug in your constraint example though. When you have 2 rigid bodies in (press space twice), they become constrained to each other, and the second monkey head falls off.

I have a question with your aerodynamics example too. How can I turn the fan’s blade around? When I try rotating it, in any direction, it won’t move at all.

“Move object centers” is probably on. Its the button with three dots. Its two buttons to the left of the “object mode” button. Deselect it.

Ah! That did it, my mistake :o
Using blender for over 4 years, and I still manage to learn something new!

Just to tell you moving the fan blade wont change the direction of the wind, cuz the diretion of the wind is controlled by the script. i can change that if you want…
Does anybody does any suggestions?

MORE! I added shadow projection and another demo.

The FPS template it’s just “fantastic”!
But the mouse look “top/bottom” actions are inverted?
Blender 2.46/Python 2.4 / LInux64
Anyway, it’s a great work ( the vehicle is really cool)
Bye and thank you!

THANK YOU SO MUCH!!!
I LOVE THE SHADOW PROJECTION, and the fps template (you can get in the car).
I’ll use this in all my games! Thank you soo much!
Check the other old thread, you can use implemented social’s mouselook which works alot better (using gl.variables, the camera and viewer instead of shoulder empty and remote)

Whoa that’s very cool!!!

Hey guys, i thank you for all the good reviews, and i’m attempting to keep all my uploads and stuff up to date with my actual work. To help me do so i’ve created what i hope will be the final APPLE threadhere. Check it out!