Action Impulse Demonstration

From CryWiki

Jump to: navigation, search


Flowgraph Walkthrough

In our simple example when the player presses the "h" key an asian_truck is thrown high into the air via the Physics:ActionImpulse node. The upDir output of the Entity:EntityPos node attached to the truck is scaled by a value of 80000 via the Vec3:ScaleVec3 node. This data is then passed to the Physics:ActionImpulse node which fires this value as an impulse throwing the truck into the air. This is a very simple example of the power of the Physics:ActionImpulse node.


Flowgraph Image

Preview of Action Impulse Simple Demonstration.
Preview of Action Impulse Simple Demonstration.

   

About this Sample

Name

Action Impulse Simple Demonstration

Created by

Fortran

Compatible with Multiplayer

No

Description

A very simple demonstration of how to use the Physics:ActionImpulse node.




» Discuss this sample...

» View other Flowgraph Samples

» Return to Crysis Modding Code Samples

Personal tools