Jump to content
Korean Random
Sign in to follow this  
Van Dark

как нарисовать шар по координатам?

Recommended Posts

Нужно нарисовать шар по координатам 13, 1, 371. Этот код не работает.

import BigWorld
from Avatar import PlayerAvatar
from tutorial.control.battle.functional import _StaticObjectMarker3D as StaticObjectMarker3D

old_startGUI = PlayerAvatar._PlayerAvatar__startGUI

def new_startGUI(*args):
    modelDot = StaticObjectMarker3D('C://Games//World_of_Tanks_RU//res_mods//', (13, 1, 371))
    modelDot._StaticObjectMarker3D__model.scale = (2, 2, 2)
    modelDot._StaticObjectMarker3D__model.visible = true

PlayerAvatar._PlayerAvatar__startGUI = new_startGUI


Share this post

Link to post

Short link
Share on other sites

кому надо - вот код как нарисовать объект

import Math
from tutorial.control.battle.functional import _StaticObjectMarker3D

model = _StaticObjectMarker3D({ 'path': 'путь к объекту.model' }, (0, 0, 0))
model._StaticObjectMarker3D__model.scale = Math.Vector3(2, 2, 2)
model._StaticObjectMarker3D__model.position = Math.Vector3(13, 1, 371)


Edited by Van Dark
  • Upvote 1

Share this post

Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...