IPhysics: SPhysicsAttributes Struct Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# SPhysicsAttributes Struct Reference

`#include <SPhysicsStructs.h>`

Inherited by SPhysicsMesh, SPhysicsPrimitive, and SPhysicsSerializedEntity.

List of all members.

## Public Member Functions

| SPhysicsAttributes ()
| Constructor for setting default values.

## Public Attributes

vector3df | scale
| Mesh scale. See notes for SPhysicsTerrain.
f32 | mass
| Mass of the body.
ENUMERATED_BODY_TYPE | bodyType
| The type of body - either EBT_DYNAMIC (affected by collisions and gravity) or EBT_STATIC (solid but unaffected by collisions or gravity).
ISceneNode * | node
| A pointer to the Irrlicht scene node. If there are several then this should be the root node, and the others added to it as child nodes.

## Detailed Description

Attributes struct. These attributes are shared by all the primitive shapes. This struct just contains common data - the shape classes derive from this and extend it; you can't create a physics entity from this alone.

## Constructor & Destructor Documentation

SPhysicsAttributes::SPhysicsAttributes | ( |  | ) | `[inline]`

Constructor for setting default values.

## Member Data Documentation

vector3df SPhysicsAttributes::scale

Mesh scale. See notes for SPhysicsTerrain.

f32 SPhysicsAttributes::mass

Mass of the body.

ENUMERATED_BODY_TYPE SPhysicsAttributes::bodyType

The type of body - either EBT_DYNAMIC (affected by collisions and gravity) or EBT_STATIC (solid but unaffected by collisions or gravity).

ISceneNode* SPhysicsAttributes::node

A pointer to the Irrlicht scene node. If there are several then this should be the root node, and the others added to it as child nodes.

The documentation for this struct was generated from the following file:

- C:/Documents and Settings/user/Desktop/IPhysics 1.5 Irr 1.2/source/SPhysicsStructs.h