Panda3D
Public Member Functions | Public Attributes | List of all members
PhysxSphereForceFieldShapeDesc Class Reference

A descriptor for a sphere force field shape. More...

#include "physxSphereForceFieldShapeDesc.h"

Inheritance diagram for PhysxSphereForceFieldShapeDesc:
PhysxForceFieldShapeDesc

Public Member Functions

float get_radius () const
 Radius of shape. More...
 
bool is_valid () const
 Returns true if the descriptor is valid. More...
 
NxForceFieldShapeDesc * ptr () const
 
void set_radius (float radius)
 Radius of shape. More...
 
void set_to_default ()
 (re)sets the structure to the default. More...
 
- Public Member Functions inherited from PhysxForceFieldShapeDesc
LMatrix4f get_mat () const
 
const char * get_name () const
 
LPoint3f get_pos () const
 
void set_hpr (float h, float p, float r)
 
void set_mat (const LMatrix4f &mat)
 
void set_name (const char *name)
 Sets a possible debug name. More...
 
void set_pos (const LPoint3f &pos)
 

Public Attributes

NxSphereForceFieldShapeDesc _desc
 

Detailed Description

A descriptor for a sphere force field shape.

Definition at line 25 of file physxSphereForceFieldShapeDesc.h.

Member Function Documentation

◆ get_radius()

float PhysxSphereForceFieldShapeDesc::get_radius ( ) const

Radius of shape.

Definition at line 29 of file physxSphereForceFieldShapeDesc.cxx.

◆ is_valid()

bool PhysxSphereForceFieldShapeDesc::is_valid ( ) const
inlinevirtual

Returns true if the descriptor is valid.

Implements PhysxForceFieldShapeDesc.

Definition at line 45 of file physxSphereForceFieldShapeDesc.I.

◆ set_radius()

void PhysxSphereForceFieldShapeDesc::set_radius ( float  radius)

Radius of shape.

Must be positive.

Definition at line 20 of file physxSphereForceFieldShapeDesc.cxx.

◆ set_to_default()

void PhysxSphereForceFieldShapeDesc::set_to_default ( )
inlinevirtual

(re)sets the structure to the default.

Implements PhysxForceFieldShapeDesc.

Definition at line 35 of file physxSphereForceFieldShapeDesc.I.

References PhysxForceFieldShapeDesc::set_name().


The documentation for this class was generated from the following files: