UNPKG

@c-frame/physx

Version:

Physics for A-Frame using Nvidia PhysX

32 lines (20 loc) 2.87 kB
# Examples The following examples demonstrate use of `physx` This set of examples is based on [these examples from aframe-physics-system](https://c-frame.github.io/aframe-physics-system/examples/). | Example | Status | | ------------------------------------------------------------ | ------------------------------------------------------------ | | Basic example of some objects in a scene using PhysX | [**OK**](https://c-frame.github.io/physx/examples/basic/index.html) | | Sandbox example - demonstration of many features in a single example. | [**Some issues**](https://c-frame.github.io/physx/examples/sandbox/index.html) | | Construct a [compound shape](https://c-frame.github.io/aframe-physics-system/#shape) and simulate collision with a ground plane. | [**OK**](https://c-frame.github.io/physx/examples/compound/index.html) | | Demonstration of many PhysX constraints including Fixed, Revolute, Spherical and Prismatic constraints. | [**OK**](https://c-frame.github.io/physx/examples/constraints/index.html) | | Bounce simulation with restitution (bounciness) of 1. | [**OK**](https://c-frame.github.io/physx/examples/materials/index.html) | | Four vertical [springs](https://c-frame.github.io/aframe-physics-system/#spring) each between two boxes with an assortment of damping and stiffness values | [**OK**](https://c-frame.github.io/physx/examples/spring/index.html) | | Apply [strong impulse](https://c-frame.github.io/aframe-physics-system/#using-the-cannonjs-api) to a cube when the user clicks with a mouse. Cubes are arranged in four 4x3 walls. | [**OK**](https://c-frame.github.io/physx/examples/stress/index.html) | | Animate a long wall moving along the z-axis along the initial view direction. | [**OK**](https://c-frame.github.io/physx/examples/sweeper/index.html) | | Remove a [dynamic body](https://c-frame.github.io/aframe-physics-system/#dynamic-body-and-static-body) from the scene after 100 frames | [**OK**](https://c-frame.github.io/physx/examples/ttl/index.html) | | Performance test: 100 balls rolling down a peg board, with timing data from physics engine. | [**OK**](https://c-frame.github.io/physx/examples/pinboard/physx.html) | | Performance comparison: performance of PhysX vs aframe-physics-system with the Ammo driver. | [**OK**](https://c-frame.github.io/physx/examples/pinboard/ammo-vs-physx.html) | ## Acknowledgements Basic example (basketballs) created [Lee Stemkoski](https://stemkoski.github.io/A-Frame-Examples/) Several examples are derived from aframe-physics-system examples, which were originally created by [DonMcCurdy](https://github.com/donmccurdy). This site is open source. [Improve this page](https://github.com/c-frame/aframe-physics-system/edit/master/examples/README.md).