Skip to content

Conversation

@looeee
Copy link
Collaborator

@looeee looeee commented Feb 13, 2018

As discussed in #13223:

  • renamed webgl_materials_cube_dynamic2 to webgl_materials_cube_dynamic
  • created new misc_controls_car example to showcase the Car.js file

I've updated Car.js as follow:

  • it now handles controls and setting up event listeners internally
  • no longer handles loading and creation of meshes, so it can use a suitable model loaded by any loader
  • (very roughly!) uses real world units
  • calculates all car dimensions automatically
  • cars now have a brake! (use space)

It takes a model that must have 4 wheels, which can be Groups, Object3Ds or Meshes and must be named wheelFrontLeft, wheelFrontRight, wheelRearLeft and wheelRearRight.

Live version of the new example here.

@mrdoob mrdoob added this to the r91 milestone Feb 13, 2018
@looeee
Copy link
Collaborator Author

looeee commented Feb 14, 2018

Updated:

  • improved the model a bit (now just over 100k polys and less gaps)
  • added optional steering wheel rotation
  • added "zoom in" effect when the car has first loaded

Updated link

@mrdoob
Copy link
Owner

mrdoob commented Feb 14, 2018

I think I would use a normal GridHelper instead. The radial one is confusing in this example.

@looeee
Copy link
Collaborator Author

looeee commented Feb 14, 2018

OK, done!

@mrdoob mrdoob modified the milestones: r91, r92 Mar 14, 2018
@Mugen87 Mugen87 mentioned this pull request Mar 21, 2018
3 tasks
@mrdoob mrdoob modified the milestones: r92, r93 Apr 18, 2018
@mrdoob mrdoob modified the milestones: r93, r94 May 22, 2018
@mrdoob mrdoob modified the milestones: r94, r95 Jun 27, 2018
@mrdoob mrdoob modified the milestones: r95, r96 Jul 31, 2018
@mrdoob mrdoob modified the milestones: r96, r97 Aug 29, 2018
@looeee
Copy link
Collaborator Author

looeee commented Sep 4, 2018

Closed in favour of #14843

@looeee looeee closed this Sep 4, 2018
@mrdoob mrdoob removed this from the r97 milestone Sep 4, 2018
@looeee looeee deleted the car_controls branch January 27, 2022 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants