EditEntity::Point
This method aligns an axis of the entity to point to another entity or a point in global space.
Syntax
- void Point(shared_ptr<Entity> entity, const int axis = 2, const float rate = 1, const float roll = 0)
- void Point(const float x, const float y, const float z, const int axis = 2, const float rate = 1, const float roll = 0)
- void Point(const Vec3& position, const int axis = 2, const float rate = 1, const float roll = 0)
| Parameter |
Description |
| entity |
entity to point to |
| position, (x, y, z) |
position in space to point to |
| axis |
axis to align (0, 1, or 2) |
| rate |
can be used to gradually align the entity |
| roll |
rotation around the axis |