Eyeon:Script/Reference/Applications/Fuse/Classes/Region3D/GetCenter
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | Region3D
Contents |
Summary
The GetCenter function is used to retrieve the center of a particle tool's 3D region of influence (if any).
Usage
success = Region3D:GetCenter(Vector3f& center)
center (Vector3f reference, required)
- This argument must be a Vector3f variable, which is set to the region's center on return.
success (boolean)
- Returns true if this region has a center that can be returned.
Example
The Process function of a Particles fuse
function Process() local region = self:GetRegion() if region then local centervec local ok = region:GetCenter(centervec) if ok then -- do something with centervec end end end
Tips for GetCenter (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Region3D/GetCenter