cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsMaterial Struct Reference

#include <CCPhysicsShape.h>

Public Member Functions

 PhysicsMaterial ()
 PhysicsMaterial ()
 PhysicsMaterial ()
 PhysicsMaterial (float aDensity, float aRestitution, float aFriction)
 PhysicsMaterial ( var aDensity, var aRestitution, var aFriction)
 PhysicsMaterial ( local aDensity, local aRestitution, local aFriction)

Public Attributes

float density
 The density of the object. More...
 
local density
 The density of the object. More...
 
float restitution
 The bounciness of the physics body. More...
 
var restitution
 The bounciness of the physics body. More...
 
local restitution
 The bounciness of the physics body. More...
 
float friction
 The roughness of the surface of a shape. More...
 
var friction
 The roughness of the surface of a shape. More...
 
local friction
 The roughness of the surface of a shape. More...
 

Constructor & Destructor Documentation

PhysicsMaterial ( )
inline
var PhysicsMaterial ( )
inline
local PhysicsMaterial ( )
inline
PhysicsMaterial ( float  aDensity,
float  aRestitution,
float  aFriction 
)
inline
var PhysicsMaterial ( var  aDensity,
var  aRestitution,
var  aFriction 
)
inline
local PhysicsMaterial ( local  aDensity,
local  aRestitution,
local  aFriction 
)
inline

Member Data Documentation

float density

The density of the object.

var density

The density of the object.

local density

The density of the object.

float friction

The roughness of the surface of a shape.

var friction

The roughness of the surface of a shape.

local friction

The roughness of the surface of a shape.

float restitution

The bounciness of the physics body.

var restitution

The bounciness of the physics body.

local restitution

The bounciness of the physics body.


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