Hi all,
Can someone please tell me what the CreatePivot is used for. I have taken some code from the castle demo and see it has a createpivot() but not sure why!
You can rotate meshes without a pivot, so why is it created?
In my version of the code, i don't use the CopyEntity so do i need to somehow associate the mesh with the pivot?
thanks all
Can someone please tell me what the CreatePivot is used for. I have taken some code from the castle demo and see it has a createpivot() but not sure why!
You can rotate meshes without a pivot, so why is it created?
In my version of the code, i don't use the CopyEntity so do i need to somehow associate the mesh with the pivot?
Function CreatePlayer.Soldier_t( x#,y#,z# ) s.Soldier_t = New Soldier_t s\entity = CreatePivot() s\model = LoadMesh("Soldier.x") s\player_y = y ScaleEntity s\model ,0.001,0.001,0.001 PositionEntity s\entity, x, y, z EntityType s\entity, TYPE_PLAYER EntityRadius s\entity, 1.5 ResetEntity s\entity Return s End Function
thanks all