Temechon

Members
  • Content count

    1,270
  • Joined

  • Last visited

  • Days Won

    22

Temechon last won the day on January 19

Temechon had the most liked content!

5 Followers

About Temechon

  • Rank
    Advanced Member
  • Birthday

Contact Methods

  • Website URL
    http://www.pixelcodr.com
  • Twitter
    temechon

Profile Information

  • Gender
    Male
  • Location
    Rouen (France)

Recent Profile Visitors

1,602 profile views
  1. Try this : scene.stopAnimation(mesh); mesh.animations = [];
  2. Hi, Did you try canvas2d ? Example here : http://babylonjs-playground.com/#EPFQG#4 and documentation here: http://doc.babylonjs.com/overviews/canvas2d_home
  3. Exact ! I didn't catch that.
  4. I don't see the purpose neither for this attribute. You can remove these line, and the PG will work the same.
  5. It's typescript but it work : private _update() { // get the direction vector toward the player var colliderPosition = this._game.player.position; var dir = colliderPosition.subtract(this.position); dir.normalize(); dir.y = 0; // get the next position of the zombie var dest = dir.scale(0.015).scale(this.speed*2); // the zombie is a mesh this.look(this._game.player.position); this.moveWithCollisions(dest); // or zombie.position.addInPlace(dest) } /** Make this mesh look at the given position (only along the y axis) */ public look (pos) { var dv = pos.subtract(this.position); var yaw = -Math.atan2(dv.z, dv.x) - Math.PI / 2; this.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(yaw, 0, 0); } my 'update' function is called with scene.registerBeforeRender(update); FYI, the whole source code is here: https://github.com/Temechon/infection, and the project is currently abandoned.
  6. You can use a custom font loader : https://github.com/bramstein/fontfaceobserver Example : http://www.babylonjs-playground.com/#2AVSFH#107
  7. Indeed, but not available online as it's under heavy work But yes, I use SPS to render tiles, trees and stone on a map (~100*100 tiles)
  8. Is it me you're looking for ? ♫
  9. Hi, Did you try BABYLON.Tags.GetTags(mesh) ?
  10. Hi, fastcheck is supposed to return the first result encountered, so i guess it works as announced
  11. Hey, I'm not sure if I can help, but did you take a look at ArcFollowCamera ? http://doc.babylonjs.com/classes/2.5/arcfollowcamera
  12. It's not the wrong forum, it's just it can be better to post it in several places
  13. Hey oz, Sorry to hear that :/ You might also want to ask over there, maybe that can help: http://www.html5gamedevs.com/forum/5-business/
  14. I think we had this problem on some big scenes, glad it's fixed now