| 29 | } |
| 30 | |
| 31 | void PlaneObject::setNormal( const Vector3f& normal, ViewportId id /*= {}*/ ) |
| 32 | { |
| 33 | auto currentXf = xf( id ); |
| 34 | currentXf.A = Matrix3f::rotation( Vector3f::plusZ(), normal ) * s_.get( id ); |
| 35 | setXf( currentXf, id ); |
| 36 | orientateFollowMainAxis_( id ); |
| 37 | |
| 38 | } |
| 39 | |
| 40 | void PlaneObject::setCenter( const Vector3f& center, ViewportId id /*= {}*/ ) |
| 41 | { |
no test coverage detected