SetPositionVec sets the position based on the specified vector pointer.
(vpos *math32.Vector3)
| 486 | |
| 487 | // SetPositionVec sets the position based on the specified vector pointer. |
| 488 | func (n *Node) SetPositionVec(vpos *math32.Vector3) { |
| 489 | |
| 490 | n.position = *vpos |
| 491 | n.matNeedsUpdate = true |
| 492 | } |
| 493 | |
| 494 | // SetPositionX sets the X coordinate of the position. |
| 495 | func (n *Node) SetPositionX(x float32) { |