Adding a Model to a Capsule Collision shape or Character Control

It doesnt work. The model I added to the player is beneath the actual control able player, and I dont know how to put it upwards, so that the camera is actually the head of the model

If only there were some way to solve this for a scene graph… say creating a node and ADDING THE CONTROL TO THE NODE… and then putting the model AS A CHILD with an appropriate offset so that it’s ‘feet’ were at 0,0,0 for the NODE.

I can think of about a half dozen other ways to say it… but I’m not sure what part of THAT is confusing. Not your problem. But the answer we’ve given you five times already… which part of THAT ANSWER is confusing?

First off I dont know how to set the offset, second this doesnt work, now it does not even show the model!

Okay, it was the model´s fault. It was set bad. Fixed it, but it is way to big. Is there a wayto scale it properly ind JME3? If yes, does anyone here know perfect things for player models, like human scales? :smiley:

EDIT: Scaled it, still not at the same position of the player. I dont want to take your time anymore if im just to dumb to understand it. Close the topic and its done

Well, to help further we’d need to see what you tried and know what (exactly) wasn’t right about it.

If you are trying to take “some random model” with potentially bad origin and bad scaling then you can fix it with the node-child approach. If you don’t want to hard code it then you can figure out how far to offset it and how far to scale it by using its bounding box.

…javadoc should help figure out how to get the bounding box, its center, its height, etc.

Well, do you maybe have a jme working model to try out?

The physics tutorials must use something.

Here I send you a screenshot how it looks ingame, maybe it helps further:

reminds me of X-Files somehow…

xD Any Ideas? And that scenegrid, anyway to remove it? or is it the model that is corrupt. If so, do you know from where I can get working models?

I have a strong impression that you started learning programming from JME (skipping tutorials and proceeding with forum). If you get an NPE and don’t even check the line compiler refers to… well asking here for each new step in your game may take you somewhere in, say, ten next years. The question is do you have them for that? :slight_smile:

Yea, sure :smiley: Im not skipping every tutorial. I just wanted this one scene working before starting to learn it, so I get an impression of the engine. Else I would switch to Unity or Unreal Engine. But I would like to stay here :smiley:

Could you at least and last send me a jme working model? :confused:

As in CODE.

Did you look at any of the physics tutorials to see what model they used?

Ohh… right there are given assets by jme right? Forgot that xD

Your model is propably not completely compatible with JME3. You are going to have to use JME Models(OTO, Jamie, Ninja etc.) until you are capable of rigging a model for JME3 I found it overtly complicated to get random internet models (from turbosquid, blenderart, etc.) to run in Jmonkey so I decided to take my time and learn. It took me about a month to use something besides the ninja and I had to learn blender in order to do it. This is tutorial on rigging a model (I used) in blender and this is best best series of tutorials on modeling, rigging and animating a model from scratch. At exactly 14:00 minutes in to the rigging tutorial he explains how to setup your root bone. This is the tutorial supplied by Jmonkey however if you are unfamiliar with blender it will confuse you therefore you should watch these vids if you are unfamiliar with blender.

Its complicated to get random models to work in any engine because many are simply not made for game development. Other engines importers might initially give you a better visual result but in the end you’ll quickly notice when the model isn’t a game-ready model in these as well.

Thank you all guys, pls leave this thread open so I can come back and check those links! Im first trying the already existing JME Ninja how you said, to see if JME is my way to go :smiley: If so, I will learn modelling^^

Where can I see JME default assets?