Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: GetBonePosition2D returning wrong bone position under Aspect Ratio mode  (Read 2661 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile

I am trying to position a 2d Scene entity to follow the position of a 3D actors bone using code

Code: [Select]
var myspritegraphic = Scene.GetNode(“myspritegraphic”);
Var Pos = actor.GetBonePosition2D("headbone");

myspritegraphic.X = Pos.X;
myspritegraphic.Y = Pos.Y;

Sadly GetBonePosition2D is giving me the wrong bone position if running in
Logged

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile

Is there a way to detect if the player is running with Aspect Ratio switched on?  It could be possible to program a 'work around' to the GetBonePosition2D error if I could query if Aspect Ratio is running, but also to query the monitors display width and height.

Game.ScreenWidth and Game.ScreenHeight return the same dimensions as when querying the Scene Width and Scene Height, rather than the monitors screens Width and Height.

Thanks again for any ideas  :D
Logged
 

Page created in 0.031 seconds with 19 queries.