# IRdPhysObjAttr Interface Reference

Inherits IRsDataObject.

List of all members.

## Public Member Functions
HRESULT | LoadAttributes ([in] RtPhysAttr *attr)
HRESULT | GetAttributes ([out] RtPhysAttr *attr)
HRESULT | SetPhysNode ([in] IRsNode *pNode)
HRESULT | GetPhysNode ([in] IRsNode **ppNode)
HRESULT | Active ([out] RtBool *bActive)
HRESULT | SetSpeed ([in] RtPoint *speed,[in] RtPoint *rotation)

## Detailed Description

IRdPhysObjAttr provides access the physical attributes data object. There is script version of this interface - IRdPhysObjAttrDisp

## Member Function Documentation

HRESULT IRdPhysObjAttr::LoadAttributes | ( | [in] RtPhysAttr * | attr | ) |

Load phys attributes.

Parameters:

  | attr | [in] phys attributes.

HRESULT IRdPhysObjAttr::GetAttributes | ( | [out] RtPhysAttr * | attr | ) |

Get phys attributes.

Parameters:

  | attr | [out] phys attributes.

HRESULT IRdPhysObjAttr::SetPhysNode | ( | [in] IRsNode * | pNode | ) |

Set object (with IRnPhysActiveAttr) with phys attributes.

Parameters:

  | pNode | [in] object.

HRESULT IRdPhysObjAttr::GetPhysNode | ( | [in] IRsNode ** | ppNode | ) |

Return object (with IRnPhysActiveAttr) with phys attributes.

Parameters:

  | ppNode | [in] object.

HRESULT IRdPhysObjAttr::Active | ( | [out] RtBool * | bActive | ) |

Return whether attributes belongs to active or inactive object in simulation. Active means that object is simulated by engine.

Parameters:

  | bActive | [out] if TRUE object is active, if FALSE object is inactive.

HRESULT IRdPhysObjAttr::SetSpeed | ( | [in] RtPoint * | speed,
|  | [in] RtPoint * | rotation |
| ) |  |  |

Set speed and rotation.

Parameters:

  | speed | [in] speed of object.
  | rotation | [in] rotation of object.