0% developed

APE Users Guide

From Wikibooks, open books for an open world
Jump to navigation Jump to search

APE Users Guide is a book designed to help you get the most out of the open source 2D physics engine APE.

About

[edit | edit source]

APE (Actionscript Physics Engine) is written in AS3 and is designed for use in Flash or Flex games and applications.

Overview

[edit | edit source]
A CircleParticle and a RectangleParticle connected by a SpringConstraint

APE is a 2D physics engine written in Actionscript 3 for use in Flash and Flex.

You can simulate 2D dynamics by using particles and connecting them with constraints to create more complex shapes. The engine currently has 3 different kinds of particle classes - the CircleParticle, RectangleParticle, and WheelParticle, and one type of constraint - the SpringConstraint.

Setup

[edit | edit source]

Flex Builder 2

[edit | edit source]

Flash CS3

[edit | edit source]

A good tutorial here (this is Part 2, which directly addresses Flash CS3, as opposed to part one which works with Flex): http://www.emanueleferonato.com/2007/10/23/ape-actionscript-physics-engine-tutorial-part-2/

Particles

[edit | edit source]

CircleParticle

[edit | edit source]

RectangleParticle

[edit | edit source]

WheelParticle

[edit | edit source]

Constraints

[edit | edit source]

SpringConstraint

[edit | edit source]

Grouping

[edit | edit source]

Group

[edit | edit source]

Composite

[edit | edit source]

Collisions

[edit | edit source]

Static Collision Tests

[edit | edit source]

Multisampling

[edit | edit source]

Painting and Rendering

[edit | edit source]

Built-in methods

[edit | edit source]

Custom methods and overriding

[edit | edit source]

License

[edit | edit source]

APE is released under the open source MIT license.