Jump to content

Vector3.TransformCoordinates before and after render issue (bug?)


satguru
 Share

Recommended Posts

see the playground link at bottom

In this I have a basic scene with one sphere

Before the scene is rendered the sphere y position is set to 1. (location is thus (0,1,0))

I calculate the TransformCoordinates of Vector3(0,1,0) in the sphere's matrix.

If should be (0,2,0) but when printed out to console it shows (0,1,0)

The scene is then rendered,

I print it out again post render. Now it shows the correct value of (0,2,0).

Nothing changed between pre and post render. So why this behavior?

http://www.babylonjs-playground.com/#10O0LF#0

Link to comment
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...